orcs-design-system 3.1.31 → 3.1.32
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.
|
@@ -123,7 +123,7 @@ var Modal = function Modal(_ref) {
|
|
|
123
123
|
if (visible && !lastActiveElement) {
|
|
124
124
|
// Keep track of last clicked element to refocus to after dialog closes
|
|
125
125
|
setLastActiveElement(document.activeElement);
|
|
126
|
-
} else {
|
|
126
|
+
} else if (!visible) {
|
|
127
127
|
setLastActiveElement(null);
|
|
128
128
|
|
|
129
129
|
// Focus the last active element before modal open when modal is closed
|