File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
projects/igniteui-angular/src/lib/grids Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -5845,15 +5845,14 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
58455845 public showSnackbarFor ( id : number ) {
58465846 if ( id === - 1 ) {
58475847 this . addRowSnackbar . actionText = '' ;
5848- this . addRowSnackbar . show ( ) ;
5849- return ;
5848+ } else {
5849+ this . addRowSnackbar . actionText = this . snackbarActionText ;
5850+ this . addRowSnackbar . onAction . subscribe ( ( ) => {
5851+ this . navigateTo ( id ) ;
5852+ this . addRowSnackbar . hide ( ) ;
5853+ } ) ;
58505854 }
5851- this . addRowSnackbar . actionText = this . snackbarActionText ;
58525855 this . addRowSnackbar . show ( ) ;
5853- this . addRowSnackbar . onAction . subscribe ( ( ) => {
5854- this . navigateTo ( id ) ;
5855- this . addRowSnackbar . hide ( ) ;
5856- } ) ;
58575856 }
58585857
58595858 /**
@@ -6450,8 +6449,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
64506449 * @hidden @internal
64516450 */
64526451 endRowTransaction ( commit : boolean , row : IgxRow ) {
6453- const id = this . transactions . enabled && ! row . id ? this . transactions . getStateByValue ( row . data ) : row . id ;
6454- row . newData = this . transactions . getAggregatedValue ( id , true ) ;
6452+ row . newData = this . transactions . getAggregatedValue ( row . id , true ) ;
64556453
64566454 let args = row . createEditEventArgs ( ) ;
64576455
You can’t perform that action at this time.
0 commit comments