Skip to content

Commit 9d80761

Browse files
shenjunjiankagol
authored andcommitted
fix(numeric): 修复numeric可以向Form推送form.change事件
1 parent ddd3c5c commit 9d80761

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/numeric/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ export const handleInput = ({ state, api, emit, props }) => (event) => {
263263
event.target.value = isNull(value) ? '' : value
264264
state.lastInput = value
265265
state.userInput = value
266+
api.setCurrentValue(value === '-' ? 0 : value)
266267
}
267268

268269
export const handleInputChange = ({ api }) => (event) => {

0 commit comments

Comments
 (0)