-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
[Bug] there's no way to replace the default input with a custom one and reproduce its logic #492
Comments
Why do you want to replace the default input ? |
I have a UI kit that I use in an app (it also includes a custom input). Without being able to change the default input, I have to maintain the styles of both components at the same time. |
mengxiong10
added a commit
that referenced
this issue
Aug 9, 2020
<date-picker>
<template v-slot:input="slotProps">
<input type="text" v-bind="slotProps.props" v-on="slotProps.events" />
</template>
</date-picker> |
v3.6.2 fixed it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vue2-datepicker version: 3.6.0
Vue version: 2.6.11
Steps to reproduce
Use the
input
slot to replace the default inputReproduction Link or Source Code
https://jsfiddle.net/dyw1puL0/
Expected behavior
I expect the
input
slot to be a scoped slot that provides all internal methods to use on my custom input.The text was updated successfully, but these errors were encountered: