Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(typeahead): Fix crash on Firefox and
contenteditable
input (#2057)
When using the typeahead directive on a `contenteditable` input, crashes can happen on Firefox: TypeError n.target.innerText is undefined According to many sources [1] [2] [3], `innerText` should only be used on old browsers where `textContent` in not defined (e.g. Internet Explorer). On newer browsers that abide by standards, `textContent` is the right property to use to avoid problems. [1]: https://stackoverflow.com/a/22990890 [2]: https://teamtreehouse.com/community/firefox-innertext-undefined-teachers-note [3]: https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent
- Loading branch information