paper-input
paper-input copied to clipboard
Focusing the input not selecting the content
Noticing some strange focus behavior with paper-input.
http://jsbin.com/gehozu/edit?html,output
Steps to reproduce:
- Click once inside each input in the example (should produce the edit cursor each time).
- Click inside the first input again.
- Begin tabbing forward through the inputs. Notice that the content in the input does not get selected, instead it seems to recall where the cursor was previously.
- Then, shift+tab back onto an input and notice that the content gets selected.
- After at least one shift+tab, any subsequent tab or shift+tab will properly select the content.
This is different than the way native inputs behave (which always select the content on focus, AFAICT)
http://jsbin.com/kepupa/edit?html,output
I have the same issue still in version 1.1.17. What is the status?
Hello, the issue still open in 2018? Any idea is this going to be fixed?
edit:
think this._focusableElement.focus(); will not select text and this._focusableElement.select(); needs to be called as well