Skip to content

Adds select logic#4081

Merged
alschmiedt merged 3 commits intoRaspberryPiFoundation:toolboxfrom
alschmiedt:init_toolbox
Jul 28, 2020
Merged

Adds select logic#4081
alschmiedt merged 3 commits intoRaspberryPiFoundation:toolboxfrom
alschmiedt:init_toolbox

Conversation

@alschmiedt
Copy link
Copy Markdown
Contributor

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

Adds logic in for selecting a toolbox item.

Proposed Changes

Reason for Changes

Test Coverage

Tested on:

Documentation

Additional Information

Copy link
Copy Markdown
Collaborator

@rachel-fenichel rachel-fenichel left a comment

Choose a reason for hiding this comment

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

A few nits, but looks good overall. Thanks for breaking this up for review.

Blockly.utils.aria.State.ACTIVEDESCENDANT, '');
}

if (newItem && newItem != oldItem ) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can you handle the case where newItem == oldItem explicitly and earlier in the function? I see you're checking this twice.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not that I have been able to figure out.
Mostly because of this line (!oldItem.isCollapsible() || oldItem != newItem).
This covers the case where we don't deselect a category if it is collapsible.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Discussed offline and approved as-is or with a simple comment change.

@alschmiedt alschmiedt merged commit c58bfa4 into RaspberryPiFoundation:toolbox Jul 28, 2020
@alschmiedt alschmiedt deleted the init_toolbox branch July 28, 2020 23:05
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.

2 participants