paper-typeahead-input icon indicating copy to clipboard operation
paper-typeahead-input copied to clipboard

Master

Open e-frank opened this issue 8 years ago • 1 comments

if inputObject and displayProp are used, but inputValue is empty, the input gets now initialized with the correct value (inputObject[displayProp])

e-frank avatar May 18 '16 02:05 e-frank

Hi @e-frank Originally, I thought inputValue and inputObject is the property to pass what user has input in this input field back to its parent element. So it kind of working like a read-only property.

Can you give a use case that we need to initialize these two fields? E.g.

app.testInputObject = {name:'hello', desc:'world'};
<paper-typeahead-input is-candidates-json='true' input-object='{{testInputObject}}' display-prop='name'></paper-typeahead-input>

What would be the scenario to use something like this?

cheonhyangzhang avatar May 18 '16 14:05 cheonhyangzhang