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

Preview image not reactive to document change. #57

Open
tnordberg opened this issue Sep 2, 2015 · 5 comments
Open

Preview image not reactive to document change. #57

tnordberg opened this issue Sep 2, 2015 · 5 comments

Comments

@tnordberg
Copy link

When the doc parameter of the autoForm changes, child afQuickFields should update accordingly. However, the fileUpload preview image does not react. Clicking the Reset button seems to force a refresh and the expected preview image is displayed. Is this as intended?

In the following example, the title (text input) will correctly update when theactiveSlide helper changes, but the background (fileUpload) preview image does not change until the Reset button is clicked.

{{#autoForm id="form_editSlide" collection="Slides" doc=activeSlide}}
  {{> afQuickField name="title"}}
  {{> afQuickField name="background"}}
  <button type="submit" class="btn btn-primary">Submit</button>
  <button type="reset" class="btn btn-default">Reset</button>
{{/autoForm}}
@kristijanbambir
Copy link

+1
And I can say that this issue was not present in version 0.2.5.

@mpowaga
Copy link
Collaborator

mpowaga commented Oct 5, 2015

This should be fixed in 0.3.0.

@ralph-fuechtenkort
Copy link

I still have the same problem on 0.4.0 even with the reset button. Any comment on this?

@caffpain
Copy link

I'm using yogiben:autoform-file@0.4.2 and still have this problem. Anyone got a workaround?

@kukagg
Copy link

kukagg commented Feb 18, 2016

+1, experienced just now.

Any workaround or ideas?

UPD: Seems like #91 is fixing this. Care to accept?

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

6 participants