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

[Bug] Input class with object syntax #552

Closed
kelunik opened this issue Nov 30, 2020 · 2 comments
Closed

[Bug] Input class with object syntax #552

kelunik opened this issue Nov 30, 2020 · 2 comments

Comments

@kelunik
Copy link

kelunik commented Nov 30, 2020

Vue2-datepicker version: 3.8.0
Vue version: 2.6.12
Browser: Firefox

Steps to reproduce

<date-picker
      :input-class="{
         'form-control': true,
         'is-invalid': hasErrors
      }"
      ...

Expected behavior

Classes are added conditionally like in Vue with :class

Actual behavior

class="[Object object]"

This is a regression of 3.8.0.

@kelunik kelunik changed the title [Bug] [Bug] Input class with object syntax Nov 30, 2020
@mengxiong10
Copy link
Owner

3.8.2 fixed it

@kelunik
Copy link
Author

kelunik commented Dec 7, 2020

Thanks! 😊

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