Closed canonic-epicure closed 4 weeks ago
Currently type
property of the widget is read-only and defined on prototype. So this line will throw in vanilla code: const a = new Toast({ type : 'toast' });
or const a = new UndoRedo({ type : 'undoredo' });
Nobody have ever complained about this, but still this is probably unexpected.
As discussed with Saki, the course of actions would be to make type
property writeable, and only throw if some different type
value is being assigned. If the same value is attempted to be assigned - just ignore it.
Extracted from https://github.com/bryntum/support/issues/9520
Steps to reproduce:
Gantt/examples/frameworks/angular/inline-data/src/app/app.component.html
like this:<bryntum-undo-redo ref='undoRedo' type='undoredo' [project]="project">
<bryntum-gantt [project] = "project"
Compiled with problems:X
ERROR
src/app/app.component.html:28:13 - error TS2339: Property 'undoredo' does not exist on type 'AppComponent'.
28 [type]='undoredo'