Description
When using the HTML5 platform you can specify a datalist to use with an input:
<input list="cities">
<datalist id="cities">
<option value="Birkenhead"></option>
<option value="Liverpool"></option>
<option value="Warrington"></option>
...
<datalist>
Although the list attribute is copied across to the internal native input this does not work with paper-input.
Expected outcome
The datalist should appear as autocomplete options for the paper-input.
Actual outcome
The datalist does not appear as autocomplete options for the paper-input.
Steps to reproduce
-
Init Polymer with proper shadow DOM:
window.Polymer = { dom: 'shadow' };
-
Put a paper-input element in the page.
-
Add a datalist with an id property
-
Add a list property to the paper-input
-
It doesn't work.
It does work with the shady DOM polyfill, and can be hacked in the dev tools by moving the datalist into the same shadow root as the input.
Browsers Affected
Description
When using the HTML5 platform you can specify a
datalistto use with aninput:Although the
listattribute is copied across to the internal nativeinputthis does not work withpaper-input.Expected outcome
The
datalistshould appear as autocomplete options for thepaper-input.Actual outcome
The
datalistdoes not appear as autocomplete options for thepaper-input.Steps to reproduce
Init Polymer with proper shadow DOM:
Put a
paper-inputelement in the page.Add a
datalistwith anidpropertyAdd a
listproperty to thepaper-inputIt doesn't work.
It does work with the shady DOM polyfill, and can be hacked in the dev tools by moving the
datalistinto the same shadow root as the input.Browsers Affected