This repository was archived by the owner on Nov 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
[BUG] nextPage event in wizard not working #157
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
- Hosting type
- Form.io
- Local deployment
- Version: 1.30.0
- Formio.js version: 4.10.3-rc.3
- Frontend framework: angular 8.2.14
Steps to Reproduce
- clone the
angular-material-formiodemo - replace the content of
app.component.htmlwith
<mat-formio [form]="form" [submission]="submission" (submit)="onSubmit($event)" (nextPage)="onNextPage()" (change)="onChange()"></mat-formio>
- edit the
app.component.tsfile to contain
form: any = {
"type": "form",
"components": [
{
"key": "panel",
"title": "Part 1",
"components": [
{
"label": "Foo",
"key": "foo",
"type": "textfield",
}
],
"type": "panel",
},
{
"key": "panel2",
"title": "Part 2",
"components": [
{
"label": "Bar",
"key": "bar",
"type": "textfield",
}
],
"type": "panel",
}
],
"display": "wizard",
"title": "Test wizard",
};
submission: any = {
"data": {
"foo": 5
}
};
onChange() {
console.log('onChange');
}
onNextPage() {
console.log('nextPage');
}
Expected behavior
When clicking the "Next" button of the sample form, a log line with the text "nextPage" should be output in the console. The event is documented in the wiki.
Observed behavior
No log line, it looks like the event is not emitted by the mat-formio component.
The (change) event works well and the onChange log line appears.
I tried to use the non-material formio component with the angular-demo app and the event works there.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working