mui / mui/base-ui

[dialog] CloseWatcher support?

Open
#3,905 0 comments 2 reactions 0 assignees View on GitHub
component: dialog discussion mobile
Dominant language
TypeScript
Stars
10.9k
Forks
543
Avg merge
1d 20h
Merged PRs (30d)
101

Description

## Summary

Native `` supports this API. Maybe we should, too. See https://developer.mozilla.org/en-US/docs/Web/API/CloseWatcher.

## Examples in other libraries

- https://github.com/ariakit/ariakit/issues/3243
- https://github.com/adobe/react-spectrum/issues/5531

## Motivation

Make it so that the state of the UI can be more easily navigated too.

There is a big UX problem with this, though: https://github.com/mui/base-ui/pull/3680#issuecomment-3826167764.
I find it interesting to have an issue so other people can find it, but otherwise, as a user, I would personally prefer that this didn't exist because I don't trust it will ever get adopted by enough websites I use daily. (So only valuable for Android apps that are webviews, a niche market)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.