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

Step on b-numberinput is not updated when prop changes #2706

Closed
rcoundon opened this issue Jul 24, 2020 · 0 comments · Fixed by #2708
Closed

Step on b-numberinput is not updated when prop changes #2706

rcoundon opened this issue Jul 24, 2020 · 0 comments · Fixed by #2708

Comments

@rcoundon
Copy link
Contributor

Buefy version: 0.8.20
Vuejs version: 2.6.11
OS/Browser: Mac Catalina/Chrome

Description

As per Discord:
When the step prop value changes this is not reflected in increment and decrement

I've created a simple illustration, in the 2nd input box I'm providing the ability to update the step by tying it to the "step" data property via v-model.
In the b-numberinput I have :step="step"
It works on initial load but doesn't change the step when I update it.
https://codepen.io/rcoundon/pen/ZEQPRRQ

Expected behavior

The new step value allows for a new step when clicking increment/decrement

Actual behavior

The step stays the same

I've nearly got a PR ready to fix this.

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

Successfully merging a pull request may close this issue.

1 participant