File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import {
17
17
import { Button } from '@nativescript-community/ui-material-button' ;
18
18
import { LinearGradient } from '@nativescript/core/ui/styling/gradient' ;
19
19
import { AnimationCurve } from '@nativescript/core/ui/enums' ;
20
+ import { NotifyData } from '@nativescript/core/data/observable' ;
20
21
21
22
export class SpeedDialItemBase extends GridLayout { }
22
23
@@ -133,11 +134,11 @@ export class SpeedDialItem extends SpeedDialItemBase {
133
134
}
134
135
135
136
notifyChildEvent ( child , superNotifyMethod ) {
136
- return ( event : EventData ) => {
137
- ( event as any ) . speeddialItem = this ;
138
- if ( event . eventName === 'tap' ) {
137
+ return < T extends NotifyData > ( data : T ) => {
138
+ ( data as any ) . speeddialItem = this ;
139
+ if ( data . eventName === 'tap' ) {
139
140
if ( this . isMain ) {
140
- this . fabmenu . get ( ) . onButtonTap ( event ) ;
141
+ this . fabmenu . get ( ) . onButtonTap ( data ) ;
141
142
} else {
142
143
this . fabmenu . get ( ) . active = false ;
143
144
}
You can’t perform that action at this time.
0 commit comments