Skip to content

docs(list, menu): clarify request-activation event audience#5975

Merged
copybara-service[bot] merged 1 commit into
material-components:mainfrom
SAY-5:docs/clarify-request-activation
May 22, 2026
Merged

docs(list, menu): clarify request-activation event audience#5975
copybara-service[bot] merged 1 commit into
material-components:mainfrom
SAY-5:docs/clarify-request-activation

Conversation

@SAY-5
Copy link
Copy Markdown
Contributor

@SAY-5 SAY-5 commented May 21, 2026

Fixes #5370.

In #5370, @asyncliz (collaborator) said "I'll leave this open to fix the docs" after @e111077 (contributor) explained the intended audience: "request-activation is still documented... It's really only meant to be used by people trying to make their own list/menu/select item or if someone wants to preventDefault / stopPropagation for complex menu interactions. I think it should stay documented".

This adds that audience note to the descriptions of request-activation:

  • list/internal/listitem/list-item.ts: @fires request-activation JSDoc.
  • menu/internal/submenu/sub-menu.ts: @fires request-activation JSDoc.
  • docs/components/list.md: Events table row.
  • docs/components/menu.md: Events table row.

Per @e111077, the docs bot is still broken, so the JSDoc source and the markdown tables are updated in sync.

No behavior change. Pure docs.

Copy link
Copy Markdown
Contributor

@e111077 e111077 left a comment

Choose a reason for hiding this comment

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

LGTM, but I don't have review permissions anymore

Copy link
Copy Markdown
Collaborator

@asyncliz asyncliz left a comment

Choose a reason for hiding this comment

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

Thanks for the docs :)

@copybara-service copybara-service Bot merged commit 55576b4 into material-components:main May 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: unclear request-activation event without documentation

3 participants