-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skewed initial positioning of Search Bar's Dropdown menu #2566
Comments
In short: The bug arises because Bootstrap's Leaving my findings here for reference: This bug is related to Bootstrap (which uses Popper.js aka floating-ui). It is caused by the current implementation for the Searchbar. Currently,
markbind/packages/vue-components/src/Searchbar.vue Lines 186 to 194 in c8b304c
Reason why this is an issue: Popper.js (floating-ui) issue: [Floating-UI: tooltip displays at a wrong offset for elements with display set to none:]
CodeSandBox demo demonstrating similar issue: https://codesandbox.io/s/react-popper-v2x-issue-template-forked-59dv1
Notes:
(correct me if I missed out/misunderstood any major aspect) Will aim to open a PR that should hopefully resolve the issue. |
Please confirm that you have searched existing issues in the repo
Yes, I have searched the existing issues
Any related issues?
No response
Tell us about your environment
Windows 11
MarkBind version
5.5.2
Describe the bug and the steps to reproduce it
The search bar's drop down menu has a skewed position when showing search results.
This issue does not seem to affect search bar dropdowns located in the Nav Bar.
We can recreate this issue on MB's user guide page, page on search bar.
Also just noticed the right-aligned dropdown also has some dynamic styling issues.Doing inspect element will show that it is not an issue of dropdown menu not rendering, but rather it is being translated out of the viewport.
I suspect it may be something to do with Bootstrap's libraries for dynamically calculating the dropdown menu positioning causing it to be skewed at the start.
Expected behavior
Search bar's drop down menu should be positioned correctly under the search bar from the start.
Anything else?
No response
The text was updated successfully, but these errors were encountered: