Chosen dropdown is hidden under drupal dialog. (e.g. views config)

Created on 30 October 2020, over 3 years ago
Updated 16 May 2024, about 1 month ago

Problem/Motivation

When configuring a view and edit options in the dialog options that appear if chosen is triggered, the results are hidden.

Steps to reproduce

1. Create view. (/admin/structure/views/add)
2. Enter an some dummy text to get edit screen. (e.g. /admin/structure/views/view/test_view)
3. Open the permission selection screen, under access => view published content - Twice (chosen not loaded first time)
4. Note that the results are cut off.

ISSUE:

SOLUTION:

Proposed resolution

Detect if chosen is trigged in a Drupal dialog box, if so, resize the dialog on open/close event.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia silverham

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.0.7 + Environment: PHP 8.1 & MySQL 8
    last update 9 months ago
    5 pass
  • πŸ‡©πŸ‡ͺGermany drupatz

    Fixed the patch for Drupal 9.5.10

  • First commit to issue fork.
  • Status changed to RTBC about 1 month ago
  • πŸ‡¦πŸ‡ΉAustria Nebel54 Vienna

    Patch #5 works like a charm. Thanks for that!

    Personally I would have stored the reference to the chosen drop element in a variable instead of using jQuery a second time to find it, but I assume it does not really make a difference. Eg.

    var $drop = $element.next().find('.chosen-drop');
    $drop.css('position', 'static');
    $element.trigger('dialogContentResize');
    // Back to absolute.
    $drop.css('position', '');
    
Production build 0.69.0 2024