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

becomeDirty() Seems To Be Throwing Some Errors In Ember-2.x #102

Open
nadnoslen opened this issue Nov 15, 2019 · 0 comments
Open

becomeDirty() Seems To Be Throwing Some Errors In Ember-2.x #102

nadnoslen opened this issue Nov 15, 2019 · 0 comments

Comments

@nadnoslen
Copy link
Member

"Error: Assertion Failed: You modified "value" twice on <valet@component:-text-field::ember1671> in a single render. It was rendered in "component:-text-field" and modified in "component:-text-field". This was unreliable and slow in Ember 1.x and is no longer supported. See https://github.com/emberjs/ember.js/issues/13948 for more details.
    at new EmberError (http://localhost:3000/assets/vendor.js:35502:25)
    at Object.assert (http://localhost:3000/assets/vendor.js:35745:15)
    at Object.exports.assertNotRendered (http://localhost:3000/assets/vendor.js:45215:42)
    at propertyDidChange (http://localhost:3000/assets/vendor.js:45333:15)
    at set (http://localhost:3000/assets/vendor.js:47213:7)
    at Class._elementValueDidChange (http://localhost:3000/assets/vendor.js:68478:27)
    at Class.focusOut (http://localhost:3000/assets/vendor.js:68547:12)
    at Class.trigger (http://localhost:3000/assets/vendor.js:69542:23)
    at Class.superWrapper [as trigger] (http://localhost:3000/assets/vendor.js:67561:22)
    at Backburner.join (http://localhost:3000/assets/vendor.js:31479:31)"

I noticed this happening when we toggle a select boxes value for a model's relationship. Triggering the option choice from the select box also calls the model's becomeDirty() function. Once the model is saved, this error is presented in the console.

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