Merge pull request #1418 from hanzi/do-not-validate-uri
Disable form validation for text properties
This commit is contained in:
commit
36225d81bd
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue