Skip to content

Commit 26fb260

Browse files
committed
Add missing disabled state to internal textinput when setting dropdown to disabled
1 parent 86e6f2e commit 26fb260

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/form/dropdown.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class DropDownComponent extends HTMLComponent {
2727

2828
const texbox = TextInput(selectedItem.map(item => item === undefined ? label.value : this.#valueRender.value(item)) as WriteSignal<string>, selectedItem.map(item => item === undefined ? "" : label.value))
2929
.setReadOnly()
30+
.setDisabled(this.#disabled)
3031
.addSuffix(MaterialIcon(this.#menu.focusedState().map(open => open ? "arrow_drop_up" : "arrow_drop_down")).setCssStyle("gridColumn", "3"))
3132
.onClick(() => {
3233
if (this.#disabled.value) return;

0 commit comments

Comments
 (0)