Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
vue-masked-input
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav Barabash
vue-masked-input
Commits
c9c1a1c0
Commit
c9c1a1c0
authored
Jan 27, 2017
by
Roma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Multiple input bug fixed
parent
f4fcadc8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
README.md
README.md
+3
-3
src/MaskedInput.vue
src/MaskedInput.vue
+4
-1
No files found.
README.md
View file @
c9c1a1c0
...
...
@@ -27,13 +27,13 @@ If you need to include one of these characters as a static part of the mask, you
<masked-input
v-model=
"phone"
mask=
"+\\1 (111) 111-1111"
placeholder=
"Phone number"
type=
"tel"
/>
```
You can also get a raw user input text if you want.
Then, i
nstead of using v-model you might need second argument of the input event:
You can also get a raw user input text if you want.
I
nstead of using v-model you might need second argument of the input event:
```
vue
<masked-input
mask=
"+\1 (111) 1111-11"
placeholder=
"Phone"
@
input=
"rawVal = arguments[1]"
/>
<masked-input
mask=
"+\
\
1 (111) 1111-11"
placeholder=
"Phone"
@
input=
"rawVal = arguments[1]"
/>
```
## Known issues/TODO
*
Cut in mobile Chrome
*
Cyrillic chars are not supported in mobile Chrome
Found more?
O
pen for feedback and pull requests
Found more?
It's o
pen for feedback and pull requests
src/MaskedInput.vue
View file @
c9c1a1c0
...
...
@@ -51,7 +51,10 @@ export default {
watch
:
{
mask
:
function
(
newMask
)
{
this
.
initMask
()
}
},
value
:
function
(
newValue
)
{
if
(
this
.
mask_core
)
this
.
mask_core
.
setValue
(
newValue
)
//For multiple inputs support
},
},
mounted
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment