X
X
xXRustamXx2018-08-31 14:09:40
Vue.js
xXRustamXx, 2018-08-31 14:09:40

Events do not work for an input that has the disabled attribute?

What is the reason I can not understand and is there a solution?
Codepen: https://codepen.io/Metis/pen/vzgWeg
PS I tried to make a wrapper of divs and hang an event on it, but I can't reach the input and put focus

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-08-31
@xXRustamXx

Does not work

Everything is correct, as it should be. What else did you expect by setting disabled?
is there a solution?

What solutions? What are you even trying to do? It's unclear.
UPD. Taken from the comments:
I want focus inputs to work only on click

Use readonly instead of disabled. Somehow so .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question