-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
b-form-timepicker: decrement does not follow minutes-step #4884
b-form-timepicker: decrement does not follow minutes-step #4884
Comments
Minor thing related to docs of b-form-timepicker: the prop should be |
The wrapping on decrement will be fixed in the next release via PR #4885
Which part of the docs? I couldn't find the mistake you mentioned in the |
Great, thanks for the fix. Regarding docs: strange.. maybe I was on a cached page or problem is sitting in front of PC. I cannot find it anymore. |
|
Maybe. One more minor question: I have |
Are you extending the timepicker or just using it as a child component in a wrapper component? |
the component listens for the inner b-time component's input, and updates the model by emitting it's own input. If you are altering the time string (say from |
I define it as an own SFC as follows (sorry cannot manage to replicate it in the playground, but in my codebase as soon as the emitted signal is renamed I do not see a triple input event with selectedValue>truncatedValue>selectedValue)
On the parent I listen for the event via I am not changing the value, but just return a truncated string to the parent component. |
But if the parent component is tied to your component's v-model, then the child picker will see the truncated value as a new value (different than the original which included seconds) and update its internals and then re-emit the value because it is different. Also |
Ah, ok! Got it. Thanks for clarification! |
BootstrapVue v2.6.1 has just been released with a fix for this issue. |
Describe the bug
Decrement (click or btnDown) does not respect "minutes-step" when current val is empty or "00"
Steps to reproduce the bug
Expected behavior
Also respect minutes-step on decrement from empty or "00".
Versions
Libraries:
Environment:
The text was updated successfully, but these errors were encountered: