Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

v-model value not gets updated on backspace #1

Closed
ankurk91 opened this issue Aug 6, 2018 · 0 comments
Closed

v-model value not gets updated on backspace #1

ankurk91 opened this issue Aug 6, 2018 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@ankurk91
Copy link
Owner

ankurk91 commented Aug 6, 2018

This should be fixed as soon as

igorescobar/jQuery-Mask-Plugin#656
OR
igorescobar/jQuery-Mask-Plugin#674

gets merged

Another way is to listen to input event

<input :type="type"  @input="onInput">
 onInput(e) {
        let toEmit = this.raw ? jQuery(this.$el).cleanVal() : e.target.value;
        this.$emit('input', toEmit);
      },
@ankurk91 ankurk91 self-assigned this Aug 6, 2018
@ankurk91 ankurk91 added enhancement New feature or request bug Something isn't working and removed upstream-limitation labels Sep 18, 2018
ankurk91 added a commit that referenced this issue Sep 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant