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 {
1717import { Button } from '@nativescript-community/ui-material-button' ;
1818import { LinearGradient } from '@nativescript/core/ui/styling/gradient' ;
1919import { AnimationCurve } from '@nativescript/core/ui/enums' ;
20+ import { NotifyData } from '@nativescript/core/data/observable' ;
2021
2122export class SpeedDialItemBase extends GridLayout { }
2223
@@ -133,11 +134,11 @@ export class SpeedDialItem extends SpeedDialItemBase {
133134 }
134135
135136 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' ) {
139140 if ( this . isMain ) {
140- this . fabmenu . get ( ) . onButtonTap ( event ) ;
141+ this . fabmenu . get ( ) . onButtonTap ( data ) ;
141142 } else {
142143 this . fabmenu . get ( ) . active = false ;
143144 }
You can’t perform that action at this time.
0 commit comments