mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
Bug 1503832 - Update spellchecker code to deal with Shadow DOM; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D10579 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
6c45f02a32
commit
21f591f177
@ -27,7 +27,7 @@ var InlineSpellCheckerContent = {
|
||||
} else {
|
||||
// Use the element's editor.
|
||||
spellChecker = this._spellChecker =
|
||||
new InlineSpellChecker(event.target.editor);
|
||||
new InlineSpellChecker(event.composedTarget.editor);
|
||||
}
|
||||
|
||||
this._spellChecker.initFromEvent(event.rangeParent, event.rangeOffset);
|
||||
|
Loading…
Reference in New Issue
Block a user