@homebound/beam 2.324.0 → 2.324.1
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/utils/rtl.js +3 -0
- package/package.json +1 -1
package/dist/utils/rtl.js
CHANGED
|
@@ -188,6 +188,9 @@ function selectOption(select, optionValue) {
|
|
|
188
188
|
if (!optionToSelect) {
|
|
189
189
|
throw new Error(`Could not find option with value or text content of ${optionValue}`);
|
|
190
190
|
}
|
|
191
|
+
if (optionToSelect.getAttribute("aria-disabled")) {
|
|
192
|
+
throw new Error(`Cannot select disabled option ${optionValue}`);
|
|
193
|
+
}
|
|
191
194
|
(0, rtl_utils_1.click)(optionToSelect);
|
|
192
195
|
}
|
|
193
196
|
function getSelected(select) {
|