healthyregions / SDOHPlace

Landing page and data discovery application for SDOH Place Project.
https://sdohplace.org
GNU General Public License v3.0
1 stars 1 forks source link

#381: Force the search box to refocus after the input got cleared out #383

Closed pengyin-shan closed 1 week ago

pengyin-shan commented 1 week ago

This PR addresses issue #381. It forces the search text box to refocus after the user removes all their input. I also removed some unused legacy code from discoveryApp.tsx.

How to Test

  1. Navigate to the search page and start typing in the search box.
  2. Delete all input using the keyboard, and you should see that the search box remains focused after everything is cleared.
netlify[bot] commented 1 week ago

Deploy Preview for cheerful-treacle-913a24 ready!

Name Link
Latest commit 09f2f9d39fcf022049fa80eb90b1df73398766f3
Latest deploy log https://app.netlify.com/sites/cheerful-treacle-913a24/deploys/67365730860ac80008cb4959
Deploy Preview https://deploy-preview-383--cheerful-treacle-913a24.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 1 week ago

Deploy Preview for cheerful-treacle-913a24 ready!

Name Link
Latest commit 960f343c2c41e997f812fb84ff037123537e6ce0
Latest deploy log https://app.netlify.com/sites/cheerful-treacle-913a24/deploys/6737969d3ca6990008d23c08
Deploy Preview https://deploy-preview-383--cheerful-treacle-913a24.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.