Closed jonjamz closed 9 years ago
This does not seem to work for me in the following case:
<template name="bootstrapLabel">
<label class="control-label">
{{#if schema.label}}{{schema.label}}{{else}}{{field}}{{/if}}
</label>
</template>
<template name="bootstrapInput">
<div class="form-group {{#unless valid}}has-error{{/unless}}">
{{> bootstrapLabel}}
<input name="{{field}}" class="form-control reactive-element" value="{{value}}">
</div>
</template>
</template>
ReactiveForms.createElement(
{
template: 'bootstrapLabel',
});
Uncaught Error: Match error: Missing key 'validationEvent'
According to the schema it should be optional:
https://github.com/meteortemplates/forms/blob/master/lib/module.coffee#L593
Perhaps it's because of the extra ,
in your object?
Sorry, my fault. I had this same issue again when updating your package: it said it was updated while in fact it was not. But I understood the reason now, no more false alerts.
Assists with #31, particularly if the goal is to create a block helper to wrap elements: