Skip to content

Commit

Permalink
Update src/components/NcInputField/NcInputField.vue
Browse files Browse the repository at this point in the history
Co-authored-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux and ShGKme committed Jan 21, 2024
1 parent 2a96691 commit b6d88ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NcInputField/NcInputField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export default {
},
handleInput(event) {
this.$emit('update:value', this.type === 'number' && typeof this.value === 'number' ? Number(event.target.value) : event.target.value)
this.$emit('update:value', this.type === 'number' && typeof this.value === 'number' ? parseFloat(event.target.value, 10) : event.target.value)
},
handleTrailingButtonClick(event) {
Expand Down

0 comments on commit b6d88ac

Please sign in to comment.