Skip to content

Avoid triggering click event on key down, and set focus on search input after submit #20

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

Closed
wants to merge 4 commits into from

Conversation

hrojek
Copy link
Collaborator

@hrojek hrojek commented Mar 16, 2023

This PR fixes the behavior of triggering the request on any key down, implementing form submit behavior. Additionally, sets the focus on the search input after submitting. Implemented in Retrieval, Reading and QA.

dispatch
);

searchRef.current.focus();
Copy link
Collaborator

@seirasto seirasto Mar 16, 2023

Choose a reason for hiding this comment

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

Can you add a comment here (and in the similar locations in the other files) regarding functionality e.g. "Switch focus to question text field"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure. Comments added.

Copy link
Collaborator

@seirasto seirasto left a comment

Choose a reason for hiding this comment

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

LGTM

# needed for write access for deployment.sh
RUN mkdir /tmp/proxy_temp && chmod 0757 /usr/share/nginx/html/

Copy link
Collaborator

@seirasto seirasto Mar 17, 2023

Choose a reason for hiding this comment

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

what is this code below for?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There's a mismatch between the feature branch's base and the PR base. These changes are from acl2023_demo.

@hrojek
Copy link
Collaborator Author

hrojek commented Mar 17, 2023

Closed due to base branch mismatch.

@hrojek hrojek closed this Mar 17, 2023
@hrojek hrojek deleted the focus-after-submit branch March 17, 2023 19:48
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 this pull request may close these issues.

Avoid triggering click event on key down, and set focus on search input after submit
2 participants