mirror of
https://github.com/directus/directus.git
synced 2026-01-23 07:28:03 -05:00
@@ -215,7 +215,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function trimIfEnabled() {
|
||||
if (props.modelValue && props.trim) {
|
||||
if (props.modelValue && props.trim && ['string', 'text'].includes(props.type)) {
|
||||
emit('update:modelValue', String(props.modelValue).trim());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user