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 field does not gain focus, if modal page has been opened via search before #12

Open
Mabktst opened this issue Jan 26, 2022 · 2 comments · May be fixed by #13
Open

Search field does not gain focus, if modal page has been opened via search before #12

Mabktst opened this issue Jan 26, 2022 · 2 comments · May be fixed by #13

Comments

@Mabktst
Copy link

Mabktst commented Jan 26, 2022

I have a strange behaviour with spotlight search field: Generally it works very well, but if a modal page has been opened via spotlight search before, the cursor is not placed in spotlight search if I open the spotlight search again (modal page ist closed). I have to use the mouse to gain focus for the field.

@lufcmattylad
Copy link

I think this should fix it @Mabktst

At line 501 of apex-plugin-spotlight/src/files/js/apexspotlight.js

Change this...

$(apexSpotlight.DOT + apexSpotlight.SP_INPUT).val('').focus();

... to this ...

$(apexSpotlight.DOT + apexSpotlight.SP_INPUT).val('');

@Mabktst
Copy link
Author

Mabktst commented Feb 27, 2023

That's a valid fix 👍

@lufcmattylad thanks a lot 🥇

Mabktst added a commit to Mabktst/apex-plugin-spotlight that referenced this issue Feb 27, 2023
Mabktst added a commit to Mabktst/apex-plugin-spotlight that referenced this issue Feb 27, 2023
@Mabktst Mabktst linked a pull request Feb 27, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants