Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] How to pass reactive data to the modal #33

Open
felberj opened this issue Sep 15, 2015 · 0 comments
Open

[question] How to pass reactive data to the modal #33

felberj opened this issue Sep 15, 2015 · 0 comments

Comments

@felberj
Copy link

felberj commented Sep 15, 2015

I have a Modal that includes an update form. When I pass the data like this:

Template.tripsShow.events({
    'click #tripEditTrigger': function (event) {
    ReactiveModal.initDialog({
            template: Template.tripsEditTemplate,
            doc: this
     });
    rd.show();
}})

And then update the data, I can see the change in the background but the form reverts to the old data (after submit) and from debugging it looks like it only has the old data.

<template name="tripsEditDescription">
    {{> quickForm collection="Trips" doc=this id="editTripForm" type="update"
    fields="name,description"}}
</template>

So my question is how do I pass the data to the modal, so it is reactive?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant