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

feat: return element from menu.render #6426

Merged
merged 3 commits into from
Sep 13, 2022

Conversation

rachel-fenichel
Copy link
Collaborator

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide
  • I ran npm run format and npm run lint

The details

Resolves

Removes a need for ?.

Proposed Changes

Return the div from menu.render so that it can be used immediately and guaranteed to be non-null in calling code.

Behavior Before Change

No return value, so you had to call getElement, which could return null.

Behavior After Change

Reason for Changes

Noticed while working on addClass.

Test Coverage

Documentation

Additional Information

@rachel-fenichel rachel-fenichel merged commit e3fa43d into google:develop Sep 13, 2022
@rachel-fenichel rachel-fenichel deleted the menu_element branch September 13, 2022 20:29
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