Skip to content

Commit

Permalink
[STUDIO] - fix props title display
Browse files Browse the repository at this point in the history
  • Loading branch information
Batiste1998 committed Sep 11, 2024
1 parent 509bc35 commit 376c290
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion studio-test/src/dependencies/hoc/withDynamicButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ const withDynamicButton = Component => {
if (props.hideIfForbidden && !actionAllowed) {
return null
}
props.title=actionMessage
return (
<>
<Component disabled={!actionAllowed}
{...props}
onClick={lodash.debounce(onClick, 200)} //For Calendar, ensure value had time to update
title={{actionMessage}}
{...conditionalProperties}
isLoading={insideAction}
/>
Expand Down
2 changes: 1 addition & 1 deletion studio/src/dependencies/hoc/withDynamicButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ const withDynamicButton = Component => {
if (props.hideIfForbidden && !actionAllowed) {
return null
}
props.title=actionMessage
return (
<>
<Component disabled={!actionAllowed}
{...props}
onClick={lodash.debounce(onClick, 200)} //For Calendar, ensure value had time to update
title={{actionMessage}}
{...conditionalProperties}
isLoading={insideAction}
/>
Expand Down

0 comments on commit 376c290

Please sign in to comment.