Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug for search input in SelectPicker while using a Drawer without Backdrop #3710

Open
JuanCaCode opened this issue Mar 27, 2024 · 2 comments

Comments

@JuanCaCode
Copy link

What version of rsuite are you using?

5.57.0

What version of React are you using?

18.0.0

What version of TypeScript are you using (if any)?

No response

What browser are you using?

brave, chrome

Describe the Bug

I'm working with the ui, that needs a drawer active without backdrop to be available to interact with the right part of the app like so:

image

Everything works good, but the searchable from SelectPicker or CheckPicker doesn't work. I can't type anything in the input.

I realize it is because the "rs-drawer-wrapper" div. because when I delete it, the searchable works again. but when I delete it, it also deletes the drawer.

Expected Behavior

The expected behavior is to use the searchable input while the drawer is actived and ofcourse without backdrop.

To Reproduce

I left you there a sandbox to reproduce

image

LINK SANDBOX

@simonguo
Copy link
Member

simonguo commented Apr 1, 2024

Hi @JuanCaCode, The reason for this issue is that the Drawer will focus forcibly after opening. You can close it by setting enforceFocus={false} on the Drawer.

<Drawer backdrop={false} enforceFocus={false} >

I will fix it in the next version, if the backdrop value of the Drawer is false, it will not focus forcibly by default.

@JuanCaCode
Copy link
Author

Thank you so much. it worked as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants