when user enters anything in Korean into the input tag and shifts the focus to any other part of the screen, the focus is shifted back to the input

Viewed 25

jsfiddle steps to reproduce : write Korean in the input box scroll down till the input box is hidden Click any where on the screen

Expected: input box will come into focus at (Korean text)

when the user types in Korean in the input box .and if we move the input box out of frame. and click anywhere else .input box will keep in frame .this is not reproducible in mac. `

1 Answers

If you want the focus to be added back to the input field even on clicking anywhere on the screen, use focus-me="1" (I took 1 as an example, you can use any number).

If you don't want the focus to be added back to the input field, you can use $removeAttribute('focus-me') or remove the autofocus element using your .ts file

Related