Closed SUGO-es closed 5 years ago
I could confirm the problem. It seems to occur with WordPress v5.0 or above.
Thanks for the report.
It seems to occur with Select2 v4.0.6-rc.0 or above. For a workaround, you can replace the files under the select2-custom-field-type/select2
folder (https://github.com/michaeluno/admin-page-framework/tree/3.8.19/example/library/select2-custom-field-type/select2) with the dist
files (https://github.com/select2/select2/tree/4.0.5/dist) of Select2 v4.0.5 for the time being.
The solution you provide removes the bug in the current version. Thanks for the support. Best regards.
@xarkitu v3.8.20 should fix this without any modifications. Let me know if it doesn't.
Type of issue
Prerequisites
dev
branch.Steps to reproduce the issue (for Bug report)
Expected behavior and actual behavior
The Select2 field does not have the add button, however, CSS areeglo to be displayed. The real problem is that by choosing a value and repeating, the duplicate field loses focus select2 and behaves like a normal select.
This problem arose me in a metabox with an inline and repetable field, every time I repeat the field, the select2 field that remains loses focus select2 and remains as a normal select.
Environment
Browsers
Operating System
Versions
Isolating the problem
If you need any more information, do not hesitate to ask me.
Thank you very much for this fantastic framework and for your great work.
Best regards.