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

Ability to clear password (set value of password to blank) #1854

Closed
gsushant opened this issue Mar 8, 2021 · 0 comments
Closed

Ability to clear password (set value of password to blank) #1854

gsushant opened this issue Mar 8, 2021 · 0 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@gsushant
Copy link

gsushant commented Mar 8, 2021

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

[ ] bug report
[x] 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/s/pasword-test-primereact-forked-vdrbt

Current behavior
Password filed doesn't accepts value programmatically.

Expected behavior
Password field should be able to accept value programmatically like setting it to blank after submission of a form.

Minimal reproduction of the problem with instructions
Scenario: Upon submission of a form (example: update password flow) the requirement is clear the values of password field. When setting the value as an empty string ("") or null the password field still retains its older value (user entered password) which is why I am unable to clear the field.

  • React version:
    v16.3.1

  • PrimeReact version:
    v6.0.2

  • Browser: [all]

  • Language: [ES6/7]

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