From 8a54c58e6d91bf379b53516288919f3a84519263 Mon Sep 17 00:00:00 2001 From: Christian Kraus Date: Sat, 18 Jan 2020 14:58:03 +0100 Subject: [PATCH 1/2] Do not validate URL properties to allow entering non-URL instant messenger handles and relationships Signed-off-by: Christian Kraus --- src/components/Properties/PropertyText.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/Properties/PropertyText.vue b/src/components/Properties/PropertyText.vue index c668a09f1..b1910bc50 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 @@ Date: Sat, 18 Jan 2020 15:26:01 +0100 Subject: [PATCH 2/2] Disable input validation on text properties in general Signed-off-by: Christian Kraus --- src/components/Properties/PropertyText.vue | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/components/Properties/PropertyText.vue b/src/components/Properties/PropertyText.vue index b1910bc50..ffc7148c7 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 @@ @@ -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') {