Releases: Meteor-Community-Packages/meteor-autoform
Releases · Meteor-Community-Packages/meteor-autoform
v5.5.0
For boolean-radios and boolean-select input types, you can now use the nullLabel attribute to specify a label (e.g., "None") for when the value is not set (or to unset it). For backwards compatibility, the boolean-radios type will not render a radio element for unsetting unless you set nullLabel.
v5.4.1: Fix `AutoForm.getFieldValue`
Fix AutoForm.getFieldValue so that it reacts properly when first called outside of the form, before the form has been rendered. Also attempt to limit unnecessary reruns.
v5.4.0
v5.3.1
v5.3.0
- Fix
Uncaught TypeError: Cannot read property 'changed' of undefinederror - Fix for checkboxes and radio buttons not triggering form change event (Thanks @abecks)
- Add
ddpattribute for specifying an alternative DDP connection for "method" and "method-update" forms (Thanks @patrickleet) - Add support for
formgroup-prefix onafFormGroup/afQuickFieldattributes. For example,formgroup-class="foo"adds "foo" class to the form group element. (Thanks @fknipp) - For Bootstrap theme templates, you can now specify
panelClass,headingClass, andbodyClassattributes for theafObjectFieldcomponent. (Thanks @fknipp)
v5.2.0
v5.1.2
v5.1.1
v5.1.0
- Fix date handling when dealing with very low year numbers. (Thanks @jfly)
- For
type="update"andtype="method-update"forms, aformToModifierhook is called instead offormToDoc, and it's passed a Mongo modifier. For forms with notypeattribute, bothformToDocandformToModifierare called. (You should provide one or both based on whether you use the doc, the modifier, or both in youronSubmithook.) - Array handling was changed in 5.0 to support additional use cases. However, this change also resulted in a MongoDB array handling quirk no longer being masked by AutoForm. Since this caused confusion for many people, array handling is now reverted back to pre-5.0 behavior. If your form needs to update specific array items as opposed to entire arrays, you can opt in to the proper array handling by putting
setArrayItems=trueon yourautoFormorquickForm. - For "method" and "method-update" type forms, before hooks will now run before validation, unless you've specified both a
schemaattribute and acollectionattribute. In that case, validation against the form schema happens before the before hooks run, and validation against the collection schema happens after the before hooks run, before your method is called. - Changes to avoid benign errors being thrown.
- Fix potential for infinite loops related to tracking field values.