db-ui / mono

DB UX Design System Monorepo - Provides Design Tokens and components for Web UIs
https://db-ui.github.io/mono/review/main/
Apache License 2.0
27 stars 5 forks source link

db-drawer: onClose event fires on every key event. #2594

Closed annsch closed 2 weeks ago

annsch commented 2 weeks ago

Which generators are impacted?

Reproduction case

Open Drawer: https://db-ui.github.io/mono/review/main/components/drawer/overview and press any key. Drawer is closed on every KeyEvent.

Expected Behaviour

  1. Automatic closing only on specific KeyEvent e.g. "escape" OR
  2. provide KeyEvent to props.onClose to enable users to react to different cases ...

Screenshots

No response

Browser version

None

Add any other context about the problem here.

No response