diff --git a/hide-disabled-filter-options-for-select2/README.md b/hide-disabled-filter-options-for-select2/README.md index b456a18..fbf5474 100644 --- a/hide-disabled-filter-options-for-select2/README.md +++ b/hide-disabled-filter-options-for-select2/README.md @@ -1,3 +1,5 @@ +# Hide empty/disabled select2 filters options + By default, Select2 doesn't hide any empty filter options. Instead, it makes them disabled which prevents clicking them. This works well when you only have a few filter options but for large filter options, it might be better to hide them instead. ### If you want to hide the disabled filter options globally, use [this CSS](hide-globally-style.css):