-
Notifications
You must be signed in to change notification settings - Fork 41
Absurd problem with tabs when containing an element with <paper-input> #125
Comments
I have the slight feeling I will win "bug of the year" award for this one. However, it will be followed by the "workaround of the decade" award! It took a lot of persistence and testing to get this one nailed, I hope the solution is simpler than actually finding the problem... |
Hi @mercmobily, I think it's a tie with this other bug!
Truth is the platform should help us on this! Ideally we'd need something like document.blockingElements which would allow // on open
document.blockingElements.push(this);
// on close
document.blockingElements.remove(this); Until then, I'm working on fixing the fixable in here PolymerElements/iron-overlay-behavior#200; here the same example above using the |
The proposal for blocking element stack looks a little "bogged", with Dominic's last message being:
So yes, platform help would be help, but I think your "band aid on steroid" solution is very much welcome and needed. |
Description
When a MODAL paper-dialog contains another element with
paper-input
s, thepaper-input
s don't get cycled with the tab key.Now the fun begin. If there is ONE
paper-input
beforei-contain-paper-inputs
, that field gets exclusive focus:And... guess what? If TWO paper-inputs precede
i-contain-paper-inputs
, then... everything works perfectly well. Yes, you read it right... this works. 100%. here:Expected outcome
I expect tab to work even without having two
paper-input
s. This is a common scenario: a dialog pops up, and the user is required to key in some infoActual outcome
It depends on the number of
paper-input
elements precedingi-contain-paper-inputs
(!).Live Demo
I am sorry, no live demo for this. I am having a tiff with jsbin.
However, I made it as simple as possible:
$ mkdir polytest
$ cd polytest
$ polymer init
And then copy over these two files:
polytest-app.html
my-el.html
Steps to reproduce
Uncomment the
paper-input
elements in my-el.html.Note: in my application, I am doing:
(!)
Browsers Affected
The text was updated successfully, but these errors were encountered: