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

Close popup when the widget tab is clicked #3685

Merged
merged 5 commits into from
May 27, 2022
Merged
Show file tree
Hide file tree
Changes from 4 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
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/appui-layout-react",
"comment": "Allow tippy.js to close when tab is clicked.",
"type": "none"
}
],
"packageName": "@itwin/appui-layout-react"
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export class DragHandle extends React.PureComponent<DragHandleProps, DragHandleS

this.setState({ isPointerDown: true });

e.preventDefault();
this._isDragged = false;
this._initial = new Point(e.clientX, e.clientY);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ export class PointerCaptor extends React.PureComponent<PointerCaptorProps> {
style={this.props.style}
role="presentation"
>
<div className="nz-overlay" />
<div
className="nz-overlay"
onDragStart={(e)=> {
e.preventDefault();
}}
/>
{this.props.children}
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ export class ResizeGrip extends React.PureComponent<ResizeGripProps, ResizeGripS
this._lastPosition = new Point(e.clientX, e.clientY);

this._isResizing = true;
e.preventDefault();

const bounds = Rectangle.create(grip.getBoundingClientRect());
this.props.onResizeStart && this.props.onResizeStart({
Expand Down