Closed woutervs closed 5 years ago
Seems to be a problem in flex.es5.js when a function gets called with a null gapValue. To resolve it I added the following code to 'flex-layout-section.component.ts': this.options.fxLayoutGap = this.options.fxLayoutGap !== null ? this.options.fxLayoutGap : "0px"; in the ngOnInit() function right below this.options = this.layoutNode.options || {};
The issue seems to be very annoying for anyone who wants to integrate the current npm published version (1.0.4). Can you try to push a fix for this issue into a new release version (let's say 1.0.5?)
I've gone back to angular6-json-schema-form there seems to be more support there and it's upgraded for angular 7 as well.
The problem is there as well but we've figured out it's in the flexlayout package from angular, going back to using 7.0.0-beta.19 fixes it. See https://github.com/angular/flex-layout/issues/1011
Describe the bug which template:
MaterialDesignFrameworkModule — Material Design
A clear and concise description of what the bug is.
To Reproduce schema: { type: "object", title: "Comment", properties: { name: { title: "Name", type: "string" }, email: { title: "Email", type: "string", pattern: "^\S+@\S+$", description: "Email will be used for evil." }, comment: { title: "Comment", type: "string", maxLength: 20, validationMessage: "Don't be greedy!" }, contact: { type: "object", title: "Contact", properties: { firstname: { title: "Firstname", type: "string" }, lastname: { title: "Lastname", type: "string" } } } }, required: [ "name", "email", "comment" ] }
Expected behavior No error should occur here
Desktop (please complete the following information):
Log output covering before error and any error statements
Additional context Problem only happens with nested objects seems so far