Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputNumber not immediately returning data #806

Closed
RichWK opened this issue Dec 21, 2020 · 1 comment
Closed

InputNumber not immediately returning data #806

RichWK opened this issue Dec 21, 2020 · 1 comment

Comments

@RichWK
Copy link

RichWK commented Dec 21, 2020

Hello — I'm using 3.1.1 and have my component set up like this:

<InputNumber v-model="userInput" @blur="onBlur" />

The prop looks like this:

userInput: null

And the method looks like this:

onBlur() {
    console.log( this.userInput );
    setTimeout( () => { console.log( this.userInput ) }, 500 );
}

The first log returns null (when I would expect it to return the field's value) and the second log returns the correct value (I entered '2019' into the field).

Is this a bug or am I doing something wrong?

@tugcekucukoglu
Copy link
Member

Please check #506. If the problem persists, please reopen this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants