Skip to content

Conversation

@mgrati
Copy link
Member

@mgrati mgrati commented Oct 29, 2024

Use Vaadin flow CheckboxGroup component for Boolean field to simplify the field manipulation and fix the focus issues when using the keyboard to browse a form's different fields

This PR allows to shift the focus inside the checkbox group using the TAB key and to select / deselect the boolean field's values using the SPACE key.

…mplify the field manipulation and fix the focus issues when using the keyboard to browse a form different fields [APPS-02BL]
@mgrati mgrati requested a review from sebai-dhia October 29, 2024 17:41
Copy link
Contributor

@sebai-dhia sebai-dhia left a comment

Choose a reason for hiding this comment

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

Code Review: FAIL
Indentation in the getBooleanValue function of the BooleanField class.
Indentation in the getBooleanValue function of the GridEditorBooleanField class.

Tests: FAIL
Two behaviors need to be corrected when navigating via the Tab key:

  1. When navigating between fields in a group of checkboxes, it is impossible to directly select one of the options by pressing the Enter key. An event listener should be added to detect the click and change the state of the button.

  2. When navigating in reverse, when the cursor moves from the second option to the first, it immediately jumps back to the first field in the block and then navigates to the second field, which is incorrect.

@mgrati mgrati requested a review from sebai-dhia November 19, 2024 17:00
@mgrati mgrati merged commit 31da6c3 into master Nov 27, 2024
2 checks passed
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.

3 participants