Skip to content

dir=auto works, but not allowed type Direction = ltr | rtl #1843

@mustafa0x

Description

@mustafa0x

Describe the bug

  • dir=auto works, but typing complains (type Direction = ltr | rtl

Changes made:

  1. <html dir=rtl lang="en">
  2. <ContextMenu.Root dir="auto">

This did cause the menu to switch direction as desired. But results in a typing error.
Image

Reproduction

https://stackblitz.com/edit/vh9kvats

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions