-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ListItem] Fix triggers onTouchTap when disabled #7486
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix could be a one line change:
render() {
const {
autoGenerateNestedIndicator,
children,
containerElement,
disabled,
disableKeyboardFocus,
hoverColor, // eslint-disable-line no-unused-vars
initiallyOpen, // eslint-disable-line no-unused-vars
innerDivStyle,
insetChildren, // eslint-disable-line no-unused-vars
leftAvatar,
leftCheckbox,
leftIcon,
nestedItems,
nestedLevel,
nestedListStyle,
onKeyboardFocus, // eslint-disable-line no-unused-vars
isKeyboardFocused, // eslint-disable-line no-unused-vars
onMouseEnter, // eslint-disable-line no-unused-vars
onMouseLeave, // eslint-disable-line no-unused-vars
onNestedListToggle, // eslint-disable-line no-unused-vars
onTouchStart, // eslint-disable-line no-unused-vars
+ onTouchTap, // eslint-disable-line no-unused-vars
rightAvatar,
you are right. Do you want me to open a new PR with only one commit? regards |
As you prefer, I will squash the commits if needed. |
@jonashartwig Thanks |
@oliviertassinari |
@hwo411 True, I just thought it's inoffensive to have that logic. |
yes, but then it does not change anything, it will send all values that are falsey as disabled then. Is it supposed to be fixed? I dont think it will break anything |
* call_em_all_-_master/master: fix: comment typo (mui#7523) [Docs] Add v0.18.7 to versions.json v0.18.7 [CHANGELOG] Prepare v0.18.7 [ListItem] Fix triggers onTouchTap when disabled (mui#7486) [Popover] Scroll Container issue (mui#7472) [Table] Don't set height to tbody (mui#7484) docs: fix typo in Avatar readme (mui#7478) # Conflicts: # src/Popover/Popover.js # merged both versions
…om-build * fix/broken-touch-scroll-on-nested-menu-items: [Menu] Ignore loosing focus on click away for item with menu items [examples] Remove browserify Fixes mui#7559 (mui#7560) [docs] Update ROADMAP (mui#7543) [Table] Row click on empty cell to not die in IE (mui#7520) Internal(EnhancedSwitch): fix checked prop (mui#7499) fix: comment typo (mui#7523) [Docs] Add v0.18.7 to versions.json v0.18.7 [CHANGELOG] Prepare v0.18.7 [ListItem] Fix triggers onTouchTap when disabled (mui#7486) [Popover] Scroll Container issue (mui#7472) [Table] Don't set height to tbody (mui#7484) docs: fix typo in Avatar readme (mui#7478)
I think it was forgotten to send disabled to EnhancedButton as it has internal logic to not trigger onTouchTap if disabled is set to true.
Closes #7449.