Skip to content

Commit

Permalink
release(toolbar): v0.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Mar 4, 2024
1 parent ab2f610 commit 153d3d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@
},
"toolbar": {
"react": true,
"version": "0.5.4",
"version": "0.5.5",
"style": true,
"icon": false,
"test": true,
Expand Down
2 changes: 1 addition & 1 deletion src/toolbar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "toolbar",
"version": "0.5.4",
"version": "0.5.5",
"description": "Application toolbar",
"luna": {
"react": true
Expand Down
5 changes: 5 additions & 0 deletions src/toolbar/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ export const LunaToolbarButton: FC<PropsWithChildren<IToolbarButtonProps>> = (
}
}, [props.state])

useEffect(
() => setDisabled(toolbarButton.current, props.disabled),
[props.disabled]
)

return toolbarButton.current
? createPortal(
<>{props.children}</>,
Expand Down

0 comments on commit 153d3d7

Please sign in to comment.