Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug]: Drawer component "Click Outside to Close" only works if Show Mask is enabled #1233

Open
@phil-pdx

Description

@phil-pdx

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

For a drawer component when show mask is disabled the "Click Outside to Close" functionality stops working requiring use of the close button if it's enabled.

Expected Behavior

The drawer should close regardless of if the mask is enabled or not

Steps to reproduce

Create a drawer component, turn off "Show Mask", keep "Click Outside to Close" enabled, click outside the drawer.

Environment

Docker all-in-one, Lowcoder 2.4.9

Additional Information

It would appear to me that the event handler for the "Click Outside to Close" option is tied to the mask itself. When turning off the mask it appears the handler has nothing to be tied to anymore. I played with the inspector a bit and found that if I leave the mask on and simply disable the background color it works as expected. Setting CSS for ant-drawer-mask in the application should create a workaround for now.

Metadata

Metadata

Labels

ComponentsDedicated to Frontend Visual ComponentsJavascript FrontendPull requests that update Javascript code

Type

Projects

Status

📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions