Merge pull request #1418 from hanzi/do-not-validate-uri

Disable form validation for text properties
This commit is contained in:
John Molakvoæ 2020-01-23 13:16:00 +01:00 committed by GitHub
commit 36225d81bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -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') {