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

Enhancement: Toggle add file button on single file field #7315

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

heybran
Copy link
Contributor

@heybran heybran commented Jun 21, 2024

Description

On file field, if it's a single file field (file_limit equals to 1), once an file has been added, we can hide the Add file button, once this file is deleted, then the button will show again, so the original situation reported on the issue can be fixed.

Related GitHub issue(s)

#7120

Testing instructions

  1. Create a single file field
  2. Go to post type
  3. First you will see the Add file button
  4. Add a file then Add file button will be hidden
  5. Once file is deleted, Add file button will be shown again

Screenshots / screencast

Screen.Recording.2024-06-21.at.12.40.11.mov

Changelog text for these changes

Enhancement: Single file field now have better user experience. (@heybran)

PR checklist

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

Successfully merging this pull request may close these issues.

None yet

1 participant