-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
paper-input does not work with a datalist in shadow DOM #595
Comments
Looking at fixes for this: the So, either:
|
Yup, that's right. The native input element doesn't know how to traverse shadow roots, so it must be in the same root as the |
Cheers for the response @notwaldorf. Yes, that's my current workaround, and the new What should we do with this element?
|
I think....in |
(i think the difference is copying it on Would you be interested in sending a PR for this? I can help anywhere you're stuck |
Cheers @notwaldorf, I'll have a go at it when I have a little time. What should I do with the current |
@notwaldorf That PR seemed simple enough, but has 6 failing Travis tests due to focus/blur events and |
Description
When using the HTML5 platform you can specify a
datalist
to use with aninput
:Although the
list
attribute is copied across to the internal nativeinput
this does not work withpaper-input
.Expected outcome
The
datalist
should appear as autocomplete options for thepaper-input
.Actual outcome
The
datalist
does not appear as autocomplete options for thepaper-input
.Steps to reproduce
Init Polymer with proper shadow DOM:
Put a
paper-input
element in the page.Add a
datalist
with anid
propertyAdd a
list
property to thepaper-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
The text was updated successfully, but these errors were encountered: