We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6b8a7a commit 26a4a90Copy full SHA for 26a4a90
src/pat/selectbox/selectbox.js
@@ -48,7 +48,7 @@ export default Base.extend({
48
},
49
50
change_select(el) {
51
- el.parentNode.setAttribute("data-option", el.querySelector("option:checked").text); // prettier-ignore
+ el.parentNode.setAttribute("data-option", el.querySelector("option:checked")?.text || ''); // prettier-ignore
52
el.parentNode.setAttribute("data-option-value", el.value);
53
54
});
0 commit comments