@educarehq/solaris-ui 0.27.2 → 0.27.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.
|
@@ -14784,6 +14784,11 @@ class SolarisDialogContainerComponent {
|
|
|
14784
14784
|
panel.focus();
|
|
14785
14785
|
return;
|
|
14786
14786
|
}
|
|
14787
|
+
const firstAction = panel.querySelector('solaris-dialog-actions button:not([disabled])');
|
|
14788
|
+
if (firstAction) {
|
|
14789
|
+
firstAction.focus();
|
|
14790
|
+
return;
|
|
14791
|
+
}
|
|
14787
14792
|
this._focusTrap()?.focusTrap?.focusInitialElement();
|
|
14788
14793
|
}
|
|
14789
14794
|
closeDialog() {
|