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

fix: allow typing in search box while dropdown is open #694

Merged
merged 2 commits into from
Feb 19, 2025

Conversation

amareshsm
Copy link
Member

@amareshsm amareshsm commented Feb 11, 2025

Prerequisites checklist

What is the purpose of this pull request?

What changes did you make? (Give an overview)

similar to eslint/eslint#19424

Related Issues

Ref: eslint/eslint#19381

Is there anything you'd like reviewers to focus on?

@eslint-github-bot eslint-github-bot bot added the bug Something isn't working label Feb 11, 2025
Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for zh-hans-eslint ready!

Name Link
🔨 Latest commit 4750697
🔍 Latest deploy log https://app.netlify.com/sites/zh-hans-eslint/deploys/67b4cd178fe2ff0007959d6e
😎 Deploy Preview https://deploy-preview-694--zh-hans-eslint.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.

Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for pt-br-eslint ready!

Name Link
🔨 Latest commit 4750697
🔍 Latest deploy log https://app.netlify.com/sites/pt-br-eslint/deploys/67b4cd1729f95d00088be26c
😎 Deploy Preview https://deploy-preview-694--pt-br-eslint.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.

Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for es-eslint ready!

Name Link
🔨 Latest commit 4750697
🔍 Latest deploy log https://app.netlify.com/sites/es-eslint/deploys/67b4cd17e69e03000879d505
😎 Deploy Preview https://deploy-preview-694--es-eslint.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.

Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for hi-eslint ready!

Name Link
🔨 Latest commit 4750697
🔍 Latest deploy log https://app.netlify.com/sites/hi-eslint/deploys/67b4cd1709ef72000896c32d
😎 Deploy Preview https://deploy-preview-694--hi-eslint.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.

Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for ja-eslint ready!

Name Link
🔨 Latest commit 4750697
🔍 Latest deploy log https://app.netlify.com/sites/ja-eslint/deploys/67b4cd175760fd0008ac372e
😎 Deploy Preview https://deploy-preview-694--ja-eslint.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.

Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for fr-eslint ready!

Name Link
🔨 Latest commit 4750697
🔍 Latest deploy log https://app.netlify.com/sites/fr-eslint/deploys/67b4cd17086c0100089904dd
😎 Deploy Preview https://deploy-preview-694--fr-eslint.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.

Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for new-eslint ready!

Name Link
🔨 Latest commit 4750697
🔍 Latest deploy log https://app.netlify.com/sites/new-eslint/deploys/67b4cd17004cbd0008069e38
😎 Deploy Preview https://deploy-preview-694--new-eslint.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.

Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for de-eslint ready!

Name Link
🔨 Latest commit 4750697
🔍 Latest deploy log https://app.netlify.com/sites/de-eslint/deploys/67b4cd1709ef72000896c332
😎 Deploy Preview https://deploy-preview-694--de-eslint.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.

Comment on lines 229 to 232
searchInput.setSelectionRange(
searchInput.value.length,
searchInput.value.length,
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't quite correct as it puts the focus at the end of the input. What we really want is to getSelectionRange() when the search input loses focus and then restore it here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure. I will make the changes accordingly.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! Can you also update this in the docs site?

@nzakas nzakas merged commit 7010afb into main Feb 19, 2025
37 checks passed
@nzakas nzakas deleted the search-allow-typing branch February 19, 2025 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

2 participants