Closed ghost closed 2 years ago
It's not possible to pass trough attributes to underlying html element. For example role attribute to div: <FocusLock returnFocus as={'div'} className='dialog role="document">`
role
div
<FocusLock returnFocus as={'div'} className='dialog
Sorry, my bad. documentation mentions lockProps={{ role: 'document' }}. I was just expecting this to be handled seamlessly as in Headless UI
lockProps={{ role: 'document' }}
It's not possible to pass trough attributes to underlying html element. For example
role
attribute todiv
:<FocusLock returnFocus as={'div'} className='dialog
role="document">`