Skip to content

Commit 08a4d00

Browse files
committed
fix: ios animate expanded of FAB
1 parent 0e341e4 commit 08a4d00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/floatingactionbutton/floatingactionbutton.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ export class FloatingActionButton extends FloatingActionButtonBase {
6666
this.nativeViewProtected.setTitleForState(value, UIControlState.Normal);
6767
}
6868
[expandedProperty.setNative](value: boolean) {
69-
this.nativeViewProtected.mode = value ? MDCFloatingButtonMode.Expanded : MDCFloatingButtonMode.Normal;
69+
this.nativeViewProtected.setModeAnimated(value ? MDCFloatingButtonMode.Expanded : MDCFloatingButtonMode.Normal, true);
7070
}
7171
}

0 commit comments

Comments
 (0)