StreamMeDev / hermes

A react message input with autocomplete and other handy features
ISC License
6 stars 0 forks source link

Fixed Firefox text overflow issue #11

Closed wesleytodd closed 6 years ago

wesleytodd commented 6 years ago

When the line ends in a space, firefox would overflow the text selection into the next element. This checks for that, and ends with a zero width space character.

wesleytodd commented 6 years ago

Ok, I think this fix is better. The last one changed the way rendering worked, breaking some other interactions. This new option, which I didn't know existed, seems to do the trick for firefox, without effecting other browsers. Then I also threw in a fix for the multiple spaces issue I found.

Jeddf commented 6 years ago

atStart fix folded into upcoming change release