Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix DeleteWithConfirmButton Does Not Allow to Override resource #5884

Merged
merged 2 commits into from
Feb 12, 2021

Conversation

djhi
Copy link
Collaborator

@djhi djhi commented Feb 8, 2021

Fixes #5869

@djhi djhi added the RFR Ready For Review label Feb 8, 2021
@@ -184,6 +184,7 @@ const Toolbar: FC<ToolbarProps> = props => {
button.props.undoable,
undoable
),
...button.props,
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand this line. When we clone button, we clone it wit hits props. some are overridden starting at line 164, but when there is a possibility to set it directly on the button element, we use the valueOrDefault util. I think this is what you should do for the resource prop.

@fzaninotto fzaninotto merged commit b7a287a into master Feb 12, 2021
@fzaninotto fzaninotto deleted the fix-delete-hooks-resource branch February 12, 2021 10:22
@fzaninotto fzaninotto added this to the 3.12.2 milestone Feb 12, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DeleteButton resource is not passed down
2 participants