File tree 1 file changed +2
-2
lines changed
components/Dialogs/src/private
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1059,7 +1059,7 @@ - (void)layoutHorizontalButtons:(NSArray<UIButton *> *)buttons actionSize:(CGSiz
1059
1059
}
1060
1060
buttonOrigin.y = actionsInsets.top ;
1061
1061
for (UIButton *button in buttons) {
1062
- if (self.isM3CButtonEnabled ) {
1062
+ if (self.isM3CButtonEnabled && [button isKindOfClass: M3CButton.class] ) {
1063
1063
M3CButton *m3cButton = (M3CButton *)button;
1064
1064
if (m3cButton.textCanWrap ) {
1065
1065
m3cButton.textCanWrap = false ;
@@ -1126,7 +1126,7 @@ - (void)layoutVerticalButtons:(NSArray<UIButton *> *)buttons {
1126
1126
buttonCenter.y = buttonOrigin.y ;
1127
1127
for (NSUInteger index = 0 ; index < buttons.count ; ++index ) {
1128
1128
UIButton *button = buttons[index ];
1129
- if (self.isM3CButtonEnabled ) {
1129
+ if (self.isM3CButtonEnabled && [button isKindOfClass: M3CButton.class] ) {
1130
1130
M3CButton *m3cButton = (M3CButton *)button;
1131
1131
m3cButton.textCanWrap = YES ;
1132
1132
self.titleLabel .lineBreakMode = NSLineBreakByTruncatingMiddle;
You can’t perform that action at this time.
0 commit comments