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

repeat.for instance changed bug with primitive values #250

Closed
stsje opened this issue Aug 24, 2016 · 3 comments
Closed

repeat.for instance changed bug with primitive values #250

stsje opened this issue Aug 24, 2016 · 3 comments

Comments

@stsje
Copy link

stsje commented Aug 24, 2016

I'm submitting a bug report

  • Library Version:
    1.0.0

Please tell us about your environment:

  • Operating System:
    Windows 8.1
  • Browser:
    Chrome
  • Language:
    ESNext

Current behavior:
https://gist.run/?id=c1974c523772771e0496bdc77ae2000a
The first Clear click renders the new array instance, but fills it with empty values.
The second Clear click correctly renders a new empty array instance.

Expected/desired behavior:
The first Clear click should render an empty array and remove all the previous input fields.
It is like the bindings are updated after the views have been cleared, and therefore rerenders the array with empty values.

It correctly clears the array if splice is used, but it should also work for instance changing.

@martingust martingust added the bug label Aug 24, 2016
@CasiOo
Copy link

CasiOo commented Sep 5, 2016

Might be related https://gist.run/?id=2a357564af55860aa4fe1f8a8cfc9a05
Trying to build dynamic input fields. The old properties are being attached to the new object.
@singledigit mentioned the above example in gitter, it might be related to this issue.

@hlj
Copy link

hlj commented Sep 9, 2016

+1

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

No branches or pull requests

5 participants