Skip to content

Commit

Permalink
fix: updateBounds when dialog open
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoKam committed Jul 13, 2023
1 parent 341a2a5 commit c9ed478
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/antd-plus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @orca-fe/painter

## 0.1.5

### Patch Changes

- fix: updateBounds when dialog open

## 0.1.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/antd-plus/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orca-fe/antd-plus",
"version": "0.1.4",
"version": "0.1.5",
"description": "Transformer Container",
"keywords": [
"react",
Expand Down
1 change: 1 addition & 0 deletions packages/antd-plus/src/dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ const Dialog = (props: DialogProps) => {
setTimeout(() => {
setShow(open);
const dom = rootRef.current;
updateBounds();
if (dom) {
dom.focus();
}
Expand Down

1 comment on commit c9ed478

@vercel
Copy link

@vercel vercel bot commented on c9ed478 Jul 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.