From f0ae1fa9196564c260a1adae7d52b9edd1887d56 Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Tue, 27 Jan 2015 21:16:40 +0000 Subject: [PATCH] Set 'value' property before a dependent CP is used No issue. - Make sure value property has been set before computed property isRelative is referenced. --- core/client/components/gh-navitem-url-input.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/client/components/gh-navitem-url-input.js b/core/client/components/gh-navitem-url-input.js index 7708f4f773..14b5d3aaf1 100644 --- a/core/client/components/gh-navitem-url-input.js +++ b/core/client/components/gh-navitem-url-input.js @@ -27,13 +27,13 @@ var NavItemUrlInputComponent = Ember.TextField.extend({ var url = this.get('url'), baseUrl = this.get('baseUrl'); + this.set('value', url); + // if we have a relative url, create the absolute url to be displayed in the input if (this.get('isRelative')) { url = joinUrlParts(baseUrl, url); + this.set('value', url); } - - this.set('value', url); - this.sendAction('change', this.get('value')); }, focusIn: function (event) {