Skip to content

Commit

Permalink
fix(engine): removing aggressive assert (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidturissini authored Nov 9, 2018
1 parent 9a29102 commit fdbc119
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/lwc-engine/src/faux-shadow/focus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ function getTabbableSegments(host: HTMLElement): QuerySegments {
const all = documentQuerySelectorAll.call(document, TabbableElementsQuery);
const inner = querySelectorAll.call(host, TabbableElementsQuery);
if (process.env.NODE_ENV !== 'production') {
assert.invariant(inner.length > 0 || (tabIndexGetter.call(host) === 0 && isDelegatingFocus(host)), `When focusin event is received, there has to be a focusable target at least.`);
assert.invariant(tabIndexGetter.call(host) === -1 || isDelegatingFocus(host), `The focusin event is only relevant when the tabIndex property is -1 on the host.`);
}
const firstChild = inner[0];
Expand Down

0 comments on commit fdbc119

Please sign in to comment.