You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two related issues with the global search bar in the header:
Search icon and clear button overlap in tablet mode
In tablet mode, the search input collapses to width: 1px when not focused. However, if the search state has a value (e.g. after performing a search), the clear button is still rendered and overlaps with the search icon. (Can be seen in the first vid below)
Clicking the clear button always open the search modal
Clicking the clear button in the search bar clears the search value as expected, but also opens the search modal. Not sure if this is intended, but to me it will make more sense to clear the content only when clicking the clear button.
Steps to Reproduce
Can be seen from the vid below, reproducible on discuss
For tablet mode, I use dimension of 768x1024
Expected Behavior
Clear button should not show when closing the search modal in tablet mode
Clicking clear button will only clear the content in the search bar
Screenshots
Search icon and clear button overlap in tablet mode
PixPin_2026-04-20_23-17-29.mp4
Clicking the clear button always open the search modal
Current Behavior
Two related issues with the global search bar in the header:
In tablet mode, the search input collapses to width: 1px when not focused. However, if the search state has a value (e.g. after performing a search), the clear button is still rendered and overlaps with the search icon. (Can be seen in the first vid below)
Clicking the clear button in the search bar clears the search value as expected, but also opens the search modal. Not sure if this is intended, but to me it will make more sense to clear the content only when clicking the clear button.
Steps to Reproduce
Can be seen from the vid below, reproducible on discuss
For tablet mode, I use dimension of 768x1024
Expected Behavior
Screenshots
PixPin_2026-04-20_23-17-29.mp4
PixPin_2026-04-20_23-21-23.mp4
Environment
Output of
php flarum infoPossible Solution
e.stopPropagation()inside the clear button's onclick handler [2.x] fix: prevent search modal from opening when clear button is clicked #4595 (Opened this as a separated PR as I am not sure if the original behavior is intended)Additional Context
No response