MOBILE-3068 rte: Update toolbar arrows every click

main
Pau Ferrer Ocaña 2019-08-27 09:39:17 +02:00
parent 265f15f380
commit 886880a2f0
1 changed files with 2 additions and 0 deletions

View File

@ -585,6 +585,7 @@ export class CoreRichTextEditorComponent implements AfterContentInit, OnDestroy
const currentIndex = this.toolbarSlides.getActiveIndex() || 0; const currentIndex = this.toolbarSlides.getActiveIndex() || 0;
this.toolbarSlides.slideTo(currentIndex + this.numToolbarButtons); this.toolbarSlides.slideTo(currentIndex + this.numToolbarButtons);
} }
this.updateToolbarArrows();
} }
/** /**
@ -597,6 +598,7 @@ export class CoreRichTextEditorComponent implements AfterContentInit, OnDestroy
const currentIndex = this.toolbarSlides.getActiveIndex() || 0; const currentIndex = this.toolbarSlides.getActiveIndex() || 0;
this.toolbarSlides.slideTo(currentIndex - this.numToolbarButtons); this.toolbarSlides.slideTo(currentIndex - this.numToolbarButtons);
} }
this.updateToolbarArrows();
} }
/** /**