O
O
ObehanProger2019-03-31 23:30:36
Vue.js
ObehanProger, 2019-03-31 23:30:36

How to hide an element when the outside area is clicked using Vue?

When you click on the "Next" button, a form pops up on the page. This is already implemented in vue. And how to make the form disappear when clicking outside (outside) this form?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav Vladislav, 2019-04-02
@ObehanProger

Use https://www.npmjs.com/package/vue-click-outside in such cases

M
Martovitskiy, 2019-03-31
@Martovitskiy

here is an example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question