Skip to content

Commit 6c9f4ad

Browse files
committed
fix: fixing change in FF for numeric types
1 parent 491dcf5 commit 6c9f4ad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api-property-form-item.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ class ApiPropertyFormItem extends ValidatableMixin(LitElement) {
162162
?legacy="${legacy}"
163163
data-type="input"
164164
@input="${this._inputHandler}"
165+
@change="${this._inputChangeHandler}"
165166
invalidmessage="${`${name} did not pass validation`}">
166167
<label slot="label">${model.schema.inputLabel}</label>
167168
</anypoint-input>`;
@@ -606,6 +607,11 @@ class ApiPropertyFormItem extends ValidatableMixin(LitElement) {
606607
this.value = e.target.value;
607608
}
608609

610+
_inputChangeHandler(e) {
611+
// in FF input event won't fire for number type and when using arrow up/down.
612+
this.value = e.target.value;
613+
}
614+
609615
_arrayValueHandler(e) {
610616
const index = Number(e.target.dataset.index);
611617
if (index !== index) {

0 commit comments

Comments
 (0)