Elm - textarea selection range disappearing
问题 I implemented a <textarea> in Elm such that tabs indent and unindent instead of change focus to another HTML element. Works great except that unindenting sometimes causes the selection to disappear! If I'm selecting the 5th character to the 12th character, I press shift - tab , then it removes 2 tab characters, but it also makes the selection change to a cursor at position 10. The selection range should remain the same.. I have an SSCCE at Ellie: https://ellie-app.com/3x2qQdLqpHga1/2 Here are