• Simple Post Notes enqueues its bundled Chosen stylesheet (assets/chosen/chosen.min.css) on every wp-admin screen, not just the screens where the plugin’s own UI appears. That stylesheet contains:

    .chosen-container .chosen-drop { left: -9999px }

    This is Chosen’s standard technique for hiding a closed dropdown, and it’s fine within Chosen itself. The problem is that it’s a global rule matching generic class names, applied site-wide in admin.

    Impact

    Easy Digital Downloads 3.6.9 migrated its admin product picker from Chosen to Tom Select, but retained the legacy chosen-container and chosen-drop class names on the new markup for backwards compatibility.

    The result is that Simple Post Notes’ stylesheet pushes EDD’s open dropdown roughly 9,590px off the left edge of the viewport. The options render at full size and opacity, and remain keyboard-selectable, but are completely invisible to the user. There is no JS error and the AJAX request returns valid data, which makes this fairly difficult to trace.

    Reproduced on Downloads > Discounts > Download Requirements. Confirmed by dequeuing the stylesheet, which resolves it immediately.

    Any other plugin retaining chosen-* class names would be affected the same way.

    Suggested fix

    Restrict the enqueue to screens where the plugin actually renders its own UI, rather than enqueueing on admin_enqueue_scripts unconditionally. Scoping the CSS under a plugin-specific wrapper class would also work, and would be more robust.

    Current workaround

    Dequeuing the stylesheet on the affected post type’s admin screens.

You must be logged in to reply to this topic.