Symfony UX: Stimulus
Stimulus Behaviors: stimulus-use
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 1 / 1

Suppose you have the following Stimulus controller, which enables the "click outside" functionality. What is it missing?

import { Controller } from 'stimulus';
import { useClickOutside  } from 'stimulus-use';

export default class extends Controller {
    static values = {
        url: String,
    }

    clickOutside(event) {
        // some interesting code here...
    }
}
Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.