vuejs-datepicker icon indicating copy to clipboard operation
vuejs-datepicker copied to clipboard

Programmatically add class to input (or get input as ref)

Open ryanmwc opened this issue 5 years ago • 1 comments

I can't seem to figure out how to add a class to the input during an event. My client wants an animated form label effect like Material's, so I was hoping to add a class of focused when @selected occurs.

Or, as an alternative, how can I access the input itself so I can do it with vanilla JS? Adding a ref to the component only gets me the component and I'm unable to drill down to the input element.

ryanmwc avatar Feb 23 '20 18:02 ryanmwc

I have same problem ,Please help me!

vankhanhpr avatar Apr 15 '20 15:04 vankhanhpr