mirror of
https://github.com/directus/directus.git
synced 2026-02-02 07:45:24 -05:00
fix v-input not emiting
This commit is contained in:
@@ -181,7 +181,9 @@ export default defineComponent({
|
||||
function emitValue(event: InputEvent) {
|
||||
let value = (event.target as HTMLInputElement).value;
|
||||
|
||||
if (props.type === 'text') {
|
||||
if (props.type === 'number') {
|
||||
emit('input', Number(value));
|
||||
} else {
|
||||
if (props.trim === true) {
|
||||
value = value.trim();
|
||||
}
|
||||
@@ -200,8 +202,6 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
emit('input', value);
|
||||
} else if (props.type === 'number') {
|
||||
emit('input', Number(value));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user