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

[Question] Is it possible to listen to events emitted by the child components #614

Closed
weisinlakd opened this issue Jun 2, 2021 · 1 comment

Comments

@weisinlakd
Copy link

Hi, great project.
I was checking your demo and saw the example of toggling the timepicker dinamically with a slotted button.
image
However, clicking on the title of said timepicker emits an event (clicktitle) on a component, and i would like to listen to that event on the DatePicker component in order to mantain the functionality of the regular datetime datepicker (as in, going back to the calendar picker).

Is this currently possible?

Thanks!

@mengxiong10
Copy link
Owner

mengxiong10 commented Jun 3, 2021

OK, It has a bug to prevent it.
You can add sync to listen it in v3.9.1

      <date-picker
        v-model="value1"
        type="datetime"
        placeholder="Select datetime"
        :show-time-panel.sync="showTimePanel"
        @close="handleOpenChange"
      >

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