Add necessary preventInertCheck calls in the DOM driver

This commit is contained in:
Tony Garnock-Jones 2021-12-11 16:51:02 +01:00
parent c9272ddcc9
commit 92fa548109
1 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,7 @@ export function spawnWindowEventFactory(ds: Ref) {
"pattern": :pattern P.WindowEvent(\Q.lit($eventType: string), \_)
}) => spawn named ['WindowEvent', eventType] {
const facet = Turn.activeFacet;
facet.preventInertCheck();
let handler = function (event: Event) {
facet.turn(() => {
@ -347,6 +348,8 @@ function _attributeLike(selector: string,
{
let savedValues: Array<{node: Element, value: any}> = [];
Turn.activeFacet.preventInertCheck();
selectorMatch(document.body, selector).forEach(node => {
switch (kind) {
case 'attribute':