diff --git a/src/getSettings.ts b/src/getSettings.ts index b9389ed9..f4d0ac39 100644 --- a/src/getSettings.ts +++ b/src/getSettings.ts @@ -147,7 +147,7 @@ export default function getSettings( input:TomInput, settings_user:RecursivePart const data_raw = input.getAttribute(attr_data); if (!data_raw) { - var value = input.value.trim() || ''; + var value = input.value ? input.value.trim() : ''; if (!settings.allowEmptyOption && !value.length) return; const values = value.split(settings.delimiter);