Skip to content

Focus on message ‘textarea’ after pressing ‘Compose message’ button#829

Merged
mauteri merged 2 commits intoGatherPress:mainfrom
carstingaxion:fix/751
Sep 2, 2024
Merged

Focus on message ‘textarea’ after pressing ‘Compose message’ button#829
mauteri merged 2 commits intoGatherPress:mainfrom
carstingaxion:fix/751

Conversation

@carstingaxion
Copy link
Copy Markdown
Collaborator

@carstingaxion carstingaxion commented Aug 29, 2024

When editing an event, that already has attendees a user can “Compose (a) message’ from the button with the same name. Unfortunately one can not start writing immediately, before not focusing the textarea manually by even a mouse click or pushing tab two times.

Description of the Change

This PR sets focus to the textarea, immediately after the modal is opened.

Closes #751

How to test the Change

  1. Edit an event, that already has attendees
  2. Click 'Compose message' button
  3. Start writing into the text field
    (without the need to click into the field or tab to the field)

Changelog Entry

Changed - Focus on message ‘textarea’ after pressing ‘Compose message’ button

Credits

Props @carstingaxion

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@github-actions
Copy link
Copy Markdown
Contributor

Preview changes with Playground

You can preview the least recent changes for PR#829 by following one of the links below:

⚠️ Note: The preview sites are created using WordPress Playground. You can add content, edit settings, and test the themes as you would on a real site, but please note that changes are not saved between sessions.

@carstingaxion carstingaxion requested a review from mauteri August 29, 2024 02:46
@mauteri mauteri merged commit 1394bec into GatherPress:main Sep 2, 2024
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.

Focus on message ‘textarea’ after pressing ‘Compose message’ button

2 participants