Skip to content
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

Search Bar Not Displaying and Screen Freezing on Double Click on Small Phone Devices #40555

Closed
3 tasks done
DevGajjar28 opened this issue Jun 13, 2024 · 3 comments
Closed
3 tasks done

Comments

@DevGajjar28
Copy link

DevGajjar28 commented Jun 13, 2024

Prerequisites

Describe the issue

Search Bar Not Displaying on Second Use:

Initially, the search bar works as expected and displays the search input.
Upon attempting to use the search bar a second time, the search bar does not appear even though typing and searching still function in the background.

Screen Freeze on Double Click:

If the search icon is double-clicked, the entire screen freezes . We have to click back to come to normal state.

Steps to Reproduce:

On a small phone device, click on the search icon.

  1. Enter a search term and observe the search bar displaying correctly.
  2. Perform a search.
  3. Click on the search icon again.
  4. Notice that the search bar does not display, although typing and searching still occur.
  5. Double click the search icon.
  6. Observe that the screen freezes

Expected Behavior:

The search bar should display each time it is clicked.
The screen should not freeze upon double-clicking the search icon.

https://github.com/twbs/bootstrap/assets/145287513/eae214f7-5da6-4ec8-b8ce-737d5c4a8e54
https://github.com/twbs/bootstrap/assets/145287513/36eedc8c-34ec-466e-8592-34b5a4587907

Reduced test cases

https://codepen.io/2107-Dev-Gajjar/pen/QWROmzR

What operating system(s) are you seeing the problem on?

Android

What browser(s) are you seeing the problem on?

Chrome, Microsoft Edge

What version of Bootstrap are you using?

https://getbootstrap.com/

@julien-deramond
Copy link
Member

Thanks for reporting this issue @DevGajjar28
I can confirm the issue on Chrome and Microsoft Edge, while it works well on Firefox.

@niyasrad
Copy link

This issue is fixed with the PR #39739, and issue #39665

I've checked the application locally, and addition of the position: fixed over .DocSearch-Container class seemed to have fixed it. Removing that particular property causes the issue again.

@julien-deramond
Copy link
Member

Thanks, @niyasrad
You're right, I forgot we already fixed that :)
The fix can be seen at https://twbs-bootstrap.netlify.app/ (deployment of the main branch), and will be embedded in the next release.

@julien-deramond julien-deramond closed this as not planned Won't fix, can't repro, duplicate, stale Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants