Remove pattern attribute and addressBookRegex property. #605

This commit is contained in:
suntala 2018-09-18 15:53:11 +02:00
parent cf74d1392f
commit 6c157406fe
1 changed files with 2 additions and 3 deletions

View File

@ -23,7 +23,7 @@
<template>
<form id="new-addressbook-form" name="new-addressbook-form" class="new-addressbook"
@submit.prevent.stop="addAddressbook">
<input id="new-addressbook" ref="addressbook" :pattern="addressBookRegex"
<input id="new-addressbook" ref="addressbook"
:placeholder="t('contacts', 'Address book name')"
class="new-addressbook-input"
type="text"
@ -46,8 +46,7 @@ export default {
},
data() {
return {
// match any expression
addressBookRegex: new RegExp('/.*/')
// TODO: add pattern attribute to input, bind to addressBookRegex property
}
},
computed: {