diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2020-01-23 13:16:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-23 13:16:00 +0100 |
commit | 36225d81bdc8894a908d544dfd842bdc49244e54 (patch) | |
tree | b42985273ec03a3ecf0ed4a169935b1c2e3c40f1 /src | |
parent | 11d448fffee34f29b381eabf4fa6956bda8d6315 (diff) | |
parent | ddcf7d10fda4f7ad055b2de046fc99a741c103ab (diff) |
Merge pull request #1418 from hanzi/do-not-validate-uri
Disable form validation for text properties
Diffstat (limited to 'src')
-rw-r--r-- | src/components/Properties/PropertyText.vue | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/Properties/PropertyText.vue b/src/components/Properties/PropertyText.vue index c668a09f..ffc7148c 100644 --- a/src/components/Properties/PropertyText.vue +++ b/src/components/Properties/PropertyText.vue @@ -58,7 +58,7 @@ id="textarea" ref="textarea" v-model.trim="localValue" - :type="type" + :inputmode="inputmode" :readonly="isReadOnly" class="property__value" @input="updateValueNoDebounce" @@ -68,9 +68,10 @@ <!-- OR default to input --> <input v-else v-model.trim="localValue" - :type="type" + :inputmode="inputmode" :readonly="isReadOnly" :class="{'property__value--with-ext': haveExtHandler}" + type="text" class="property__value" @input="updateValue"> @@ -137,7 +138,7 @@ export default { // length is one & add one space at the end return hasTitle + 1 + isLast + noteHeight }, - type() { + inputmode() { if (this.propName === 'tel') { return 'tel' } else if (this.propName === 'email') { @@ -145,7 +146,7 @@ export default { } else if (this.propType === 'uri') { return 'url' } - return 'text' + return false }, URLScheme() { if (this.propName === 'tel') { |