This is a migrated thread and some comments may be shown as answers.

Value of input field not set

1 Answer 58 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Trent
Top achievements
Rank 1
Trent asked on 29 Mar 2016, 07:35 AM

I have an autocomplete input setup and it all works great - except when I look in inspector after either: selecting a suggested value; or typing in a value not in the list - the input value attribute is not set.

 

The value in my case is needed for my material design theme, which has the floating label. Without a value in the <input value="selected value"> the label returns to the middle of the field and overlaps with the selected text.

Any idea how to make the kendoAutoComplete also set the value of the input field?

1 Answer, 1 is accepted

Sort by
0
Trent
Top achievements
Rank 1
answered on 29 Mar 2016, 09:30 AM
This can be closed (or deleted). Turns out it has nothing to do with the Kendo element. I needed to hook up an on(blur) event that added a class to push the label up when there was a value in the input. 
Tags
AutoComplete
Asked by
Trent
Top achievements
Rank 1
Answers by
Trent
Top achievements
Rank 1
Share this question
or