Export IgnoreNestedEvents component#14707
Conversation
|
@youknowriad should know the reason why it wasn't part of the public API. I'm not quite sure why it is part of |
|
This component was not exposed previously in
|
|
I'd also be curious if you considered This is a pretty complex component, and one which I could expect to become a pain to maintain, particularly if React follows-through with some of their proposed events refactoring (#4751, #13525).
It would be fair to say so, I think, yes. I guess as far as making a decision here, it could be helpful to have a clearer explanation of what this component provides which is not sufficiently possible with alternatives, and whether as described it's abstracted in a way which would be adaptable to future revisions in React events behavior. |
In our use case, we needed to filter the default In We use it like this: <IgnoreNestedEvents childHandledEvents={ [ 'onDragStart', 'onMouseDown' ] }>
{ /* ... */ }
</IgnoreNestedEvents> |
|
It should be noted that this component was removed from the codebase as of #19397 (mentioned also at #19397 (comment)). |
Description
In one of our components we want to use the
IgnoreNestedEventscomponent. We realized that it is currently not being exposed by the@wordpress/block-editorpackage. This PR changes that.Types of changes
New feature (non-breaking change which adds functionality)
Checklist: