@ni/nimble-components 24.1.3 → 24.1.4
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/dist/all-components-bundle.js +7 -1
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +1 -1
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/drawer/index.js +6 -0
- package/dist/esm/drawer/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -16301,7 +16301,7 @@
|
|
|
16301
16301
|
|
|
16302
16302
|
/**
|
|
16303
16303
|
* Do not edit directly
|
|
16304
|
-
* Generated on Tue, 02 Apr 2024
|
|
16304
|
+
* Generated on Tue, 02 Apr 2024 16:52:55 GMT
|
|
16305
16305
|
*/
|
|
16306
16306
|
|
|
16307
16307
|
const Information100DarkUi = "#a46eff";
|
|
@@ -21868,6 +21868,12 @@
|
|
|
21868
21868
|
this.triggerAnimation();
|
|
21869
21869
|
}
|
|
21870
21870
|
triggerAnimation() {
|
|
21871
|
+
// Read the offsetHeight of the dialog to trigger a reflow. This guarantees that the browser
|
|
21872
|
+
// has processed the 'animating' class being removed before trying to readd it, even if the previous
|
|
21873
|
+
// animation has just finished. Otherwise, problems can occur. For example, trying to close the
|
|
21874
|
+
// drawer immediately after the opening animation ends does not actually close the drawer.
|
|
21875
|
+
// https://github.com/ni/nimble/issues/1994
|
|
21876
|
+
void this.dialog.offsetHeight;
|
|
21871
21877
|
this.dialog.classList.add('animating');
|
|
21872
21878
|
if (this.closing) {
|
|
21873
21879
|
this.dialog.classList.add('closing');
|