makeup-navigation-emitter
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -53,4 +53,4 @@ 'use strict'; | ||
// traverse ancestors until interactive element is found | ||
while (element.tagName.toLowerCase() !== 'body' && !indexData) { | ||
// traverse widget ancestors until interactive element is found | ||
while (element !== this._el && !indexData) { | ||
element = element.parentNode; | ||
@@ -57,0 +57,0 @@ indexData = element.dataset.makeupIndex; |
{ | ||
"name": "makeup-navigation-emitter", | ||
"description": "Emits custom events based on keyboard navigation of one or two dimensional model", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/makeup-js/makeup-navigation-emitter.git", |
175054