Click in order · Vue.js course · Module 14: Directives & Plugins
Checking click outside the element
Arrange the condition that checks whether a click occurred outside the element:
Items to click
- el
- !
- event.target
- )
- .contains(
You can check the correct answer by solving this task in the CodeWorlds game.