-
Notifications
You must be signed in to change notification settings - Fork 13
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
EZP-31236: Added bootstrap tooltip for all nodes with attribute title #246
EZP-31236: Added bootstrap tooltip for all nodes with attribute title #246
Conversation
title: label, | ||
tabIndex: '-1', | ||
onClick: handleClick, | ||
}; | ||
|
||
attrs.className = disabled ? `${attrs.className} ${baseClassName}--disabled` : attrs.className; | ||
attrs.className = type ? `${attrs.className} ${baseClassName}--${type}` : attrs.className; | ||
attrs.disabled = disabled ? 'disabled' : false; |
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.
I think:
attrs.disabled = disabled
should be okej
fde4129
to
4db3dfb
Compare
@@ -244,6 +244,7 @@ export default class SubItemsModule extends Component { | |||
*/ | |||
switchView(activeView) { | |||
this.setState(() => ({ activeView })); | |||
eZ.helpers.tooltips.hideAll(); |
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.
I would do it in the setState
callback as change state can be postponed in react
@@ -247,7 +243,7 @@ export default class SubItemsModule extends Component { | |||
* @memberof SubItemsModule | |||
*/ | |||
switchView(activeView) { | |||
this.setState(() => ({ activeView })); | |||
this.setState(() => ({ activeView }), eZ.helpers.tooltips.hideAll()); |
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 second parameter in setState
is a function. I don't know how this will work.
this.setState(() => ({ activeView }), eZ.helpers.tooltips.hideAll()); | |
this.setState(() => ({ activeView }), () => eZ.helpers.tooltips.hideAll()); |
…s to cretate class names for action buttons
d35191c
to
593dd39
Compare
All PR’s to this ticket:
ezsystems/ezplatform-matrix-fieldtype#30
https://github.com/ezsystems/ezplatform-form-builder/pull/205
ezsystems/ezplatform-user#58
https://github.com/ezsystems/ezplatform-workflow/pull/106
https://github.com/ezsystems/date-based-publisher/pull/148
#246
ezsystems/ezplatform-admin-ui#1176
Checklist:
$ composer fix-cs
)