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

FileList component allows file deletion when "Allow Remove" property is set to false #536

Closed
hlayisanimazuze opened this issue Nov 20, 2023 · 0 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers ready for testing v1 Feature required for v1.0 release

Comments

@hlayisanimazuze
Copy link
Collaborator

hlayisanimazuze commented Nov 20, 2023

If allow remove is set to false, the delete icon still shows after attaching a file which allows a user to remove the attached file. This behavior does not adhere to the property setting

Steps to reproduce the behavior:

  1. From designer mode link: https://function-adminportal-test.shesha.dev/shesha/forms-designer?id=77358438-e21e-4df2-9c02-716647282073, click on 'File List 1' to confirm the 'Allow Remove' property is unchecked
  2. Preview the form
  3. Attach a file and hover over the attached file

Expected behavior
When allow remove property is set to false, the delete icon should not show when you hover on the file attached

Delete icon file

Related work item: [User Story 47408: Clean-up the 'Attachments Editor' component and provide support when owner is new entity still to be created](url)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers ready for testing v1 Feature required for v1.0 release
Projects
None yet
Development

No branches or pull requests

5 participants