linear-react-components-ui 1.0.14-beta.1 → 1.0.14-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +1 -1
- package/lib/uitour/index.js +9 -2
- package/package.json +1 -1
package/.vscode/settings.json
CHANGED
package/lib/uitour/index.js
CHANGED
|
@@ -172,14 +172,21 @@ var UiTour = function UiTour(props) {
|
|
|
172
172
|
mutationObserver = new MutationObserver(function () {
|
|
173
173
|
var targetObserved = document.getElementById(initialStep.targetId);
|
|
174
174
|
if (targetObserved) {
|
|
175
|
+
var _mutationObserver;
|
|
175
176
|
showStepTour(initialStep);
|
|
177
|
+
(_mutationObserver = mutationObserver) === null || _mutationObserver === void 0 ? void 0 : _mutationObserver.disconnect();
|
|
178
|
+
mutationObserver = null;
|
|
176
179
|
}
|
|
177
180
|
});
|
|
181
|
+
mutationObserver.observe(document, {
|
|
182
|
+
subtree: true,
|
|
183
|
+
childList: true
|
|
184
|
+
});
|
|
178
185
|
}
|
|
179
186
|
}
|
|
180
187
|
return function () {
|
|
181
|
-
var
|
|
182
|
-
(
|
|
188
|
+
var _mutationObserver2;
|
|
189
|
+
(_mutationObserver2 = mutationObserver) === null || _mutationObserver2 === void 0 ? void 0 : _mutationObserver2.disconnect();
|
|
183
190
|
mutationObserver = null;
|
|
184
191
|
};
|
|
185
192
|
}, [visible, data]);
|