Skip to content

Commit 7aae387

Browse files
authored
Inspector: Fix value update of number and checkbox elements. (#32355)
1 parent 877fc43 commit 7aae387

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

examples/jsm/inspector/ui/Values.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,14 @@ class ValueNumber extends Value {
157157

158158
}
159159

160+
setValue( val ) {
161+
162+
this.input.value = val;
163+
164+
return super.setValue( val );
165+
166+
}
167+
160168
getValue() {
161169

162170
return parseFloat( this.input.value );
@@ -194,6 +202,14 @@ class ValueCheckbox extends Value {
194202

195203
}
196204

205+
setValue( val ) {
206+
207+
this.checkbox.value = val;
208+
209+
return super.setValue( val );
210+
211+
}
212+
197213
getValue() {
198214

199215
return this.checkbox.checked;

0 commit comments

Comments
 (0)