Skip to content

Commit

Permalink
update onChange param requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhlongviolin1 committed Sep 14, 2024
1 parent 5c61f90 commit 66b2d94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/taipy-gui/base/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ export class TaipyApp {
}

set onChange(handler: OnChangeHandler | undefined) {
if (handler !== undefined && handler.length !== 3) {
throw new Error("onChange() requires three parameters");
if (handler !== undefined && handler.length !== 3 && handler.length !== 4) {
throw new Error("onChange() requires three or four parameters");
}
this._onChange = handler;
}
Expand Down

0 comments on commit 66b2d94

Please sign in to comment.