- Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
This issue is automatically created based on existing pull request: #36325: add isMultipleFiles property to image form element template
Prevent the "Browse to find or drag image here" button to disappear when an image is added in a multiple files image form element.
Description (*)
The only modification in the code is the addition of the already existing (and utilized) property "isMultipleFiles" into the condition that determine whether the "Browse to find or drag image here" button should be display or not.
In doing so, when the user add an image to the multiple files image form element, the "Browse to find or drag image here" is still there.
This is useful to inform the user that the form element can take multiple images and that these images can be drag and drop, especially when the form element is initially populated with existing images.
Manual testing scenarios (*)
- Create an adminhtml UI form with an imageUploader element.
- Define the "isMultipleFiles" boolean property to true in this element.
- Check the form, the "Browse to find or drag image here" button disappear after the first image is uploaded.
Contribution checklist (*)
- Pull request has a meaningful description of its purpose
- All commits are accompanied by meaningful commit messages
- All new or changed code is covered with unit/integration tests (if applicable)
- README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
- All automated tests passed successfully (all builds are green)