kendo-angular icon indicating copy to clipboard operation
kendo-angular copied to clipboard

Editor not refetching messages when MessageService.notify is called

Open MLefebvreICO opened this issue 3 years ago • 3 comments

Describe the bug The editor does not refresh the localization messages properly when changing messages and calling the notify method on MessageService as it is suppose to work.

To Reproduce Steps to reproduce the behavior:

  1. Go onto the StackBlitz
  2. Wait for 2 seconds once the components render so the setTimeout ends.
  3. Put your mouse over the Bold tool of the Editor and notice the message hasn't changed.
  4. Open the DateTimePicker and notice that the Today message changed properly there.

Expected behavior The editor refreshes its messages when we call notify on MessageService.

Browser

  • OS: Windows 10 Pro x64
  • Browser: Edge
  • Version: 89.0.774.77

Additional context The language switch seems to works if it's done before the Editor is loaded, but if it's already loaded, it won't change the messages properly.

NOTE : Opened this issue so the original post doesn't get spammed : https://github.com/telerik/kendo-angular/issues/362

MLefebvreICO avatar Apr 20 '21 12:04 MLefebvreICO

@mbechev I think you mean pkg:editor, no ?

MLefebvreICO avatar Apr 21 '21 20:04 MLefebvreICO

@mbechev I don't know if it's linked to this, but every single components doesn't seems to check the MessageService, so we have done that all for nothing 😐

We had to put the messages component inside the editor, the colorPicker, DatePicker, DateTimePicker, TimePicker, etc.. because they were not fetching their messages from the service.

MLefebvreICO avatar Jul 14 '21 15:07 MLefebvreICO