diff options
author | Christian Kraus <hanzi@hanzi.cc> | 2020-01-18 15:26:01 +0100 |
---|---|---|
committer | Christian Kraus <hanzi@hanzi.cc> | 2020-01-18 15:26:01 +0100 |
commit | ddcf7d10fda4f7ad055b2de046fc99a741c103ab (patch) | |
tree | 09289f8db028f47d941860b1b637a3749ef6617c /src/components/Properties/PropertyText.vue | |
parent | 8a54c58e6d91bf379b53516288919f3a84519263 (diff) |
Disable input validation on text properties in general
Signed-off-by: Christian Kraus <hanzi@hanzi.cc>
Diffstat (limited to 'src/components/Properties/PropertyText.vue')
-rw-r--r-- | src/components/Properties/PropertyText.vue | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/components/Properties/PropertyText.vue b/src/components/Properties/PropertyText.vue index b1910bc5..ffc7148c 100644 --- a/src/components/Properties/PropertyText.vue +++ b/src/components/Properties/PropertyText.vue @@ -58,7 +58,6 @@ id="textarea" ref="textarea" v-model.trim="localValue" - :type="type" :inputmode="inputmode" :readonly="isReadOnly" class="property__value" @@ -69,10 +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"> @@ -139,19 +138,15 @@ 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') { return 'email' - } - return 'text' - }, - inputmode() { - if (this.propName === 'uri') { + } else if (this.propType === 'uri') { return 'url' } - return '' + return false }, URLScheme() { if (this.propName === 'tel') { |