Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 3e93c5c

Browse files
authored
fix: regression from 0.10.8 fixes bootstrap-vue-next#1398
fix: regression from 0.10.8 fixes bootstrap-vue-next#1398
1 parent b6c0ceb commit 3e93c5c

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

packages/bootstrap-vue-next/src/composables/useFormInput.ts

+10-4
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,11 @@ export default (
165165
return
166166
}
167167

168-
inputValue = value
169-
updateModelValue(formattedValue, true)
168+
const nextModel = _getModelValue(formattedValue)
169+
if (modelValue.value !== nextModel) {
170+
inputValue = value
171+
updateModelValue(formattedValue, true)
172+
}
170173

171174
emit('change', formattedValue)
172175
}
@@ -178,8 +181,11 @@ export default (
178181
const {value} = evt.target as HTMLInputElement
179182
const formattedValue = _formatValue(value, evt, true)
180183

181-
inputValue = value
182-
updateModelValue(formattedValue, true)
184+
const nextModel = _getModelValue(formattedValue)
185+
if (modelValue.value !== nextModel) {
186+
inputValue = value
187+
updateModelValue(formattedValue, true)
188+
}
183189
}
184190

185191
const focus = () => {

0 commit comments

Comments
 (0)