Open ShotSkydiver opened 4 months ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.
This is a super simple thing to merge, hopefully someone does!
Description
I noticed a small bug after the merging of the "removal of defaultProps" pr, specifically with the renaming of "disabled" in the MTableAction to "isDisabled": https://github.com/material-table-core/core/commit/28198974306263d5f8967a89471d3ef9b723d74d#diff-31854f487c033ec0756b72380ee05d26214810c393b33198e24d744249e2957bR35
The variable was renamed but the logic within
if (action.tooltip)
wasn't updated to check against that new variable name, so passing intrue
to thedisabled
prop on an action would no longer ever evaluate to true in that if statement, which meant the Tooltip content was never wrapped in aspan
when the action was disabled.Impacted Areas in Application
*
MTableAction
Additional Notes
This was just an oversight in the original pr, so it should be a very clearcut fix!