Open rslawik opened 5 years ago
<paper-input> does not respect tabindex contract.
<paper-input>
tabindex
https://codepen.io/rileybauer/pen/vaeMaQ (by @rileyjbauer) shows that tabIndex property and tabindex attribute can go out of sync. It looks like the tabIndex property is generated by Polymer: https://imgur.com/sSSBMFx.
tabIndex
The property and the attribute are in sync.
For example:
$0.tabIndex = -1; $0.getAttribute('tabindex'); // returns -1
and
$0.setAttribute('tabindex', 0); $0.tabIndex; // returns 0
Initial value of $0.tabIndex is undefined.
$0.tabIndex
undefined
Changing the property does not affect the attribute. For example:
$0.getAttribute('tabindex'); // returns 0 $0.tabIndex = -1; $0.getAttribute('tabindex'); // returns 0
https://codepen.io/rileybauer/pen/vaeMaQ (by @rileyjbauer)
Steps are explained in the live demo.
Additionally try interacting with <paper-input> directly from the console:
$0.tabIndex; // returns undefined $0.getAttribute('tabindex'); // returns 0 $0.tabIndex = -1; $0.getAttribute('tabindex'); // returns 0
Description
<paper-input>
does not respecttabindex
contract.https://codepen.io/rileybauer/pen/vaeMaQ (by @rileyjbauer) shows that
tabIndex
property andtabindex
attribute can go out of sync. It looks like thetabIndex
property is generated by Polymer: https://imgur.com/sSSBMFx.Expected outcome
The property and the attribute are in sync.
For example:
and
Actual outcome
Initial value of
$0.tabIndex
isundefined
.Changing the property does not affect the attribute. For example:
Live Demo
https://codepen.io/rileybauer/pen/vaeMaQ (by @rileyjbauer)
Steps to reproduce
Steps are explained in the live demo.
Additionally try interacting with
<paper-input>
directly from the console:Browsers Affected