apalfrey / select2-bootstrap-5-theme

A Select2 v4 theme for Bootstrap 5
https://apalfrey.github.io/select2-bootstrap-5-theme/
MIT License
212 stars 48 forks source link

Non-Responsive when viewport changes #85

Closed marc-gist closed 6 months ago

marc-gist commented 6 months ago

Unlike Bootstrap 5, when the viewport changes, the select2 boxes do not change size to fit within their columns anymore and will overflow. not an issue if the viewport doesn't change as it does seem to set the size correct on load, but if you switch from say landscape to portrait, things get "ugly".

Is there a way to trigger a redraw on the select2 when viewport size changes?

marc-gist commented 6 months ago

nevermind, i can manually set the width.