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

Style props doesnt update after re-rendering with Inputmask #996

Closed
dattebayorob opened this issue Aug 21, 2019 · 0 comments
Closed

Style props doesnt update after re-rendering with Inputmask #996

dattebayorob opened this issue Aug 21, 2019 · 0 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@dattebayorob
Copy link

dattebayorob commented Aug 21, 2019

There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[X] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Codesandbox Case (Bug Reports)

https://codesandbox.io/embed/primereact-test-clnhn

Current behavior
Style props doesnt get passed to input after re-rendering the component.
className, style and even styled-component class doesnt work with Inputmask

Expected behavior
When error change, the Style prop change the border color of the input

Minimal reproduction of the problem with instructions
On the sandbox sample, just click on "Submit" without change the value. InputText updates the style but InputMask doesnt

Please tell us about your environment:
Arch Linux, with VSCODE and Firefox (Google Chrome tested too)

  • React version:
    16.9.0

  • PrimeReact version:
    3.1.8

  • Browser:
    Chrome 76 and Firefox 68

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    ES6

@dattebayorob dattebayorob changed the title Styles dont update on re-render on Inputmask Style props doesnt update after re-rendering with Inputmask Aug 21, 2019
@mertsincan mertsincan self-assigned this Aug 27, 2019
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Aug 27, 2019
@mertsincan mertsincan added this to the 3.1.9 milestone Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants