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

FileControl rendering issue #1183

Open
johnsully83 opened this issue May 18, 2021 · 0 comments
Open

FileControl rendering issue #1183

johnsully83 opened this issue May 18, 2021 · 0 comments
Assignees
Labels

Comments

@johnsully83
Copy link
Member

Describe the bug
When using a FileControl, and when using any of the exposed mechanisms to clear the value of the input (e.g. FieldInteractionAPI.setValue, NovoFormGroup.patchValue, NovoFormGroup.reset) the UI is not properly updated and the name of the previously selected stays visible. This only appears

To Reproduce
Steps to reproduce the behavior:

  1. Render a FileControl in a NovoFormGroup
  2. Render a button with a (click) handler, that when you click the button runs the code
    this.form.patchValue({ file: undefined // can also try and empty array or empty string, same result })
  3. Select a file in the FileControl, then click the button

Expected behavior
The file should be cleared in the UI and it's name should not be displayed

Actual behavior
The name of the file is still displayed in the UI

Specifications

  • Version: Current
  • Platform: Windows Chrome

Screenshots
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants