summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kraus <hanzi@hanzi.cc>2020-01-18 14:58:03 +0100
committerChristian Kraus <hanzi@hanzi.cc>2020-01-18 14:58:03 +0100
commit8a54c58e6d91bf379b53516288919f3a84519263 (patch)
tree3bec3b074630ba5022794dc71d2059fd0031e323
parent6b995f4ba5dd857c101d678a51f3c761e1fbfc05 (diff)
Do not validate URL properties to allow entering non-URL instant messenger handles and relationships
Signed-off-by: Christian Kraus <hanzi@hanzi.cc>
-rw-r--r--src/components/Properties/PropertyText.vue10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/Properties/PropertyText.vue b/src/components/Properties/PropertyText.vue
index c668a09f..b1910bc5 100644
--- a/src/components/Properties/PropertyText.vue
+++ b/src/components/Properties/PropertyText.vue
@@ -59,6 +59,7 @@
ref="textarea"
v-model.trim="localValue"
:type="type"
+ :inputmode="inputmode"
:readonly="isReadOnly"
class="property__value"
@input="updateValueNoDebounce"
@@ -69,6 +70,7 @@
<input v-else
v-model.trim="localValue"
:type="type"
+ :inputmode="inputmode"
:readonly="isReadOnly"
:class="{'property__value--with-ext': haveExtHandler}"
class="property__value"
@@ -142,11 +144,15 @@ export default {
return 'tel'
} else if (this.propName === 'email') {
return 'email'
- } else if (this.propType === 'uri') {
- return 'url'
}
return 'text'
},
+ inputmode() {
+ if (this.propName === 'uri') {
+ return 'url'
+ }
+ return ''
+ },
URLScheme() {
if (this.propName === 'tel') {
return 'tel:'