Closed davidnixon closed 2 months ago
The change
event is unchanged. It still emits a native change event for the underlying input. This is used for kind simple
and short
.
The change
event is still emitted for kind single
and range
but ti is not shown in the storybook.
For kinds single
and range
the new dateChange
event is emitted. The param passed to the event is an array of Date objects. For a kind single
this array has 1 entry. For a kind range
, the array has 2 entries.
For a kind range
, the array has 2 entries.
@gabisinhas
Can you have a look at this one and lmk. I did consider changing the change
event but that would potentially break anyone who is currently using that event. That's why I decided on the dateChange
event.
@davidnixon i think it might resolve this. If you can publish then I can test it. thanks for the attention to this issue.
npm remove @carbon/vue
npm add carbon-vue-3.0.20-1abc8.tgz
Contributes to #1625
What did you do?
@
items at the end of the attribute list i.e.@change="onChange"
dateChange
this event mimics thechange
event in the Carbon Reactsingle
kind andrange
kind. The v-model is different for each of these and I think separating the stories makes it a bit clearer.single
kind andrange
kind stories, show thedateChange
in the actions tabWhy did you do it?
See #1625 but basically there was no way to listen for changes for a range style date picker.
How have you tested it?
Via the storybook
Were docs updated if needed?