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

InputText inputClass attribute show incorrect warning on class style binding #3674

Closed
IcyTempest opened this issue Feb 23, 2023 · 1 comment

Comments

@IcyTempest
Copy link

Describe the bug

I need to access the InputText to customize the border color and such for validation. I can do that through the inputClass attribute of Calendar. Everything work well and all is fine. Until you inspect it and saw that inputClass doesn't accept anything that is related to Vue, class style binding with Array or object doesn't shut down the error, it accepts nothing but pure string in order for the error to not shown. Again, all is fine, it's just that it's giving false warning.

Reproducer

https://codesandbox.io/s/youthful-river-kgh9dm?file=/src/App.vue

PrimeVue version

3.4.2-SNAPSHOT

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

Firefox

Steps to reproduce the behavior

  1. Give :inputClass any types of class style binding
  2. Inspect the page
  3. Make the condition valid or true and see the warning

Expected behavior

Giving it any kinds of Class Style Binding shouldn't show up any warning.

@IcyTempest IcyTempest added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 23, 2023
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Feb 27, 2023
@tugcekucukoglu tugcekucukoglu added this to the 3.x milestone Feb 27, 2023
@tugcekucukoglu tugcekucukoglu self-assigned this Feb 27, 2023
@tugcekucukoglu
Copy link
Member

This is an obvious defect. It is fixed for the next version. Please follow this ticket #3707

@tugcekucukoglu tugcekucukoglu removed this from the 3.x milestone Mar 9, 2023
@tugcekucukoglu tugcekucukoglu removed the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Mar 9, 2023
@tugcekucukoglu tugcekucukoglu removed their assignment Mar 9, 2023
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