Reputation: 644
i have a modal where i open and via a outlet so opened it using following code
this.render( controller, {
into: 'application',
outlet: 'modal'
} );
then in the modal view i have a computed property
peopleArray: computed ('someDataFromaMixin' , function (){
debugger;
return this.get( 'someDataFromaMixin' )
}),
then i close the modal using below code
removeOutlet: function( ) {
return this.disconnectOutlet( {
outlet: 'modal',
parentView: 'application'
} );
},
issue is the computed property compute if i go there with a page refresh
if i close the modal and re-open again the computedProperty will not trigger ( even if i modified the computed property data )
im clueless what cause this issue
Upvotes: -1
Views: 129
Reputation: 644
i have fixed this issue by triggering model's rollBackAttributes method when i fired the action to close the modal view. so then i can preserve the original state of the model which is modified in the modal view where it is rendered through an outlet
Upvotes: 0