Wynand Vermeulen

Results 5 comments of Wynand Vermeulen

Reproduced on: Meteor v1.8.1 simple-schema v1.5.3 collection2 v3.0.1 autoform v6.3.0 Here is a github repository with a [fresh minimalistic meteor project](https://github.com/mozfet/test-collection2-380) reproducing the bug: Steps: 1) $ meteor create --full...

This is the browser log: ``` Exception in template helper: TypeError: Cannot convert undefined or null to object at Function.from () at _toConsumableArray (http://localhost:3000/packages/modules.js?hash=b9e3205bd02466aafd035f03d78dd1a11c4d3ea8:1144:182) at SimpleSchema.getAllowedValuesForKey (http://localhost:3000/packages/modules.js?hash=b9e3205bd02466aafd035f03d78dd1a11c4d3ea8:1741:24) at Object.autoFormGetOptionsForField [as...

I have been able to reproduce this without using Collection2, thus I conclude this is an AutoForm related error. Found this issue https://github.com/aldeed/simple-schema-js/pull/291 there are 2 possible pull requests waiting...

This workaround fixed it for me: ``` const options = { onCloseEnd() { $('body').css('overflow', '') } } M.Modal.init(elem, options) ```

I'll try to get a codepen up by this weekend.