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

Remove jQuery :visible check during sortable list initialization #812

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

Conversation

kjbenk
Copy link
Contributor

@kjbenk kjbenk commented Nov 9, 2021

Description

FM uses the jQuery :visible selector to determine if the sortable list should be initialized. This can return false during initialization when rendered in Gutenberg. Based on some of my research this seems to be related to the sortable list element having a width and height of 0 when the function is called.

Overall, I do not have much insight into why the visibility check was added (outside of assuming it was to prevent initializing sortable lists for collapsed meta boxes), so I am unsure what effects this update will have.

@kjbenk kjbenk added the bug Something isn't working label Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant