D
D
DmitryGloom2018-08-14 10:31:48
Vue.js
DmitryGloom, 2018-08-14 10:31:48

How to uncheck the checkbox when clicking on a third-party area?

Good afternoon, tell me if there is such an opportunity to implement unchecking the checkbox when clicking on a third-party area? Checkbox respectively 1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
#
#FFFFFF, 2018-08-14
@DmitryGloom

It will be convenient to use the plugin https://github.com/ndelvalle/v-click-outside on the view - the name speaks for itself, when clicking outside the specified element, a certain function is performed. In this function, you "check" the checkbox. And so it is possible to process a click on the document on pure js, and if the target is not a checkbox, uncheck it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question