• Hi,

    I don’t want to display the selected filters within the search form of the Select2 style, how do I disable it so it doesn’t render in the DOM?

    See here: https://jumpshare.com/v/YKCMwPPzYotDW83vJ5A1

    I know I can add “display:none” to the css class of it but I don’t want it to render at all, is that not possible?

    Thank you in advance!

    • This topic was modified 1 year, 8 months ago by sigrundish.
    • This topic was modified 1 year, 8 months ago by sigrundish.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author RazyRx

    (@razyrx)

    Hello,

    Plugin do not have option like this.

    Regards,
    Oleg

    Thread Starter sigrundish

    (@sigrundish)

    Okay, I can just remove it by adding display none to the classname in CSS then, but how would you suggest I go around keeping the placeholder? It is removed if a user has selected an option. Do I need to add “fake” placeholder by doing something like this: https://stackoverflow.com/a/72912701 or do you plan on releasing an update where we can choose to always just have a simple input field, not with the selected options? Or at least make it possible that the placeholder is not emptied when some options are activated? I am showing the active filters above, I think it is extra noisy to show it twice in two different places hehe.

    Already have problems with select 2 libriary…

    Plugin Author RazyRx

    (@razyrx)

    Hello,

    If it is some Select2 options, then you can modify options with JavaScript hook in our plugin jqrui_data_select2, some information about JavaScript hooks you can check in https://docs.berocket.com/plugin/woocommerce-ajax-products-filter#6300

    Regards,
    Oleg

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove selected filters from Select2 form’ is closed to new replies.