linear-react-components-ui 1.0.14-beta.2 → 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 +5 -2
- package/package.json +1 -1
package/.vscode/settings.json
CHANGED
package/lib/uitour/index.js
CHANGED
|
@@ -172,7 +172,10 @@ 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
|
});
|
|
178
181
|
mutationObserver.observe(document, {
|
|
@@ -182,8 +185,8 @@ var UiTour = function UiTour(props) {
|
|
|
182
185
|
}
|
|
183
186
|
}
|
|
184
187
|
return function () {
|
|
185
|
-
var
|
|
186
|
-
(
|
|
188
|
+
var _mutationObserver2;
|
|
189
|
+
(_mutationObserver2 = mutationObserver) === null || _mutationObserver2 === void 0 ? void 0 : _mutationObserver2.disconnect();
|
|
187
190
|
mutationObserver = null;
|
|
188
191
|
};
|
|
189
192
|
}, [visible, data]);
|