Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,10 @@ export const createInlineOverlayComponent = <PropType, ElementType>(
* that removes the item.)
*/
if (wrapper && el) {
// The delegate's removeViewFromDom call handles unmounting the React component.
// Setting state here can cause race conditions.
// Restore the wrapper to the element before the delegate removes it.
el.append(wrapper);
this.setState({ isOpen: false });
}

this.props.onDidDismiss && this.props.onDidDismiss(evt);
Expand Down
Loading