Not working with bootstrap theme

Created on 16 March 2024, 8 months ago
Updated 13 June 2024, 5 months ago

Hi,

I have installed this module on my website but I was unable to have the pretty checkboxes displayed.
I have been running some tests, and figured out that the module is working well with many themes like gin, but the issue seems to happen when using the bootstrap theme.

Do you have any hint to help me understand where the problem comes from (and how I can solve it), or any possibility to make this module work natively with the bootstrap theme ?

Thanks!

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

  • Issue created by @Arno2Mars
  • Status changed to Postponed: needs info 8 months ago
  • 🇪🇨Ecuador dmezquia UTC-5

    Hi @Arno2Mars,

    Are you on the latest version 2.0.3? clean caches too?

    For this I uploaded a adjust previously. https://www.drupal.org/project/pcr/issues/3384074#comment-15483319 Does not appear in views exposed filter block Fixed

    If your problem continues, specify versions, screenshot and how to reproduce it.

  • Hi Dmezquia,

    I don't think the issue is the same, as my problem is not occuring with Better Exposed Filters.

    But you are right, I should have provided more info. Here it is:

    Versions:
    - drupal v10.2.4
    - pcr v2.0.3
    - Bootstrap theme v8.x-3.30

    Steps to reproduce:
    1- Create a content type (e.g Article)
    2- In "manage fields", create a List field (e.g Test checkbox)
    3- In "manage form display", select formatter "Pretty checkboxes/radios buttons" and save
    4- Clear all caches
    5- Go to the content add page and see the form

    While on many themes the pretty buttons appear (see 3 first screenshots for Gin, Claro and Olivero), nothing appears for Bootstrap theme (see last screenshot).

    Inspecting the page with the Chrome developper tools, it appears that the
    for each select element are created but empty, thus not showing anything.

    Let me know if this additional info helps.

    Many thanks!

  • Status changed to Active 8 months ago
  • 🇪🇨Ecuador dmezquia UTC-5

    I will review it as soon as I can, thank you very much.

  • First commit to issue fork.
  • Status changed to Needs review 8 months ago
  • 🇮🇳India Tirupati_Singh

    @Arno2Mars and @dmezquia, fixed the issue for Bootstrap theme. Attaching screenshots for reference, please review the MR.

  • Thanks a lot!

    I have just tested it and I confirm it works like a charm.
    I took time also to check everything is still working with Claro, Gin and Olivero themes, and I confirm it is the case.

    Your help is much appreciated, thanks again!

  • Status changed to RTBC 6 months ago
  • Hi, @Tirupati_Singh
    I've successfully reproduced the issue by follwing the 'Steps to reproduce' and encountered the same, and after applying the patch the issue gets resolved, and clearly appear on Bootstrap theme, also the previous workings are not getting affected for that, which I've cross-checked on Gin, CLaro and Olivero theme as well.
    Hence moving it to RTBC++
    Also attaching relevant screenshots for reference!

  • Status changed to Fixed 6 months ago
  • 🇪🇨Ecuador dmezquia UTC-5

    Fix in new release 2.0.4. Thank to all!.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024