Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8024419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:52:04+00:00 2026-06-04T22:52:04+00:00

With an Ember.Select view like: {{view Ember.Select viewName=select contentBinding=view.noseNames prompt=Add a Nose: selectionBinding=view.noseToAdd }}

  • 0

With an Ember.Select view like:

{{view Ember.Select viewName="select"
    contentBinding="view.noseNames"
    prompt="Add a Nose:"
    selectionBinding="view.noseToAdd" 
}}

When the user selects a nose to add, I’d like to reset the Ember.Select back to the prompt. How do I do that? I’ve tried set(‘noseToAdd’ null), but it just sets the Select to a blank item.

A full JSFiddle showing the question:

http://jsfiddle.net/tyH8L/4/


Handlebars:

<script type="text/x-handlebars">
    {{#view App.PickANose}}                    
        {{view Ember.Select
            contentBinding="view.noseNames"
            prompt="Add a Nose:"
            selectionBinding="view.noseToAdd" 
        }}
    {{/view}}

    Picked Noses:
    {{#each App.noses}}{{this}}, {{/each}}
</script>

​

JavaScript:

App = Ember.Application.create({
    noses: []
});

App.PickANose = Ember.View.extend({
    noseNames: ['broken', 'roman', 'hawkish', 'aquiline'],
    noseToAdd: null,
    aNoseWasPicked: function () {
        if (Ember.none(this.get('noseToAdd'))) return;

        var noseToAdd = this.get('noseToAdd');
        App.get('noses').pushObject(noseToAdd);

        // HERE IS THE QUESTION:
        // How do I return the select back to "Add a nose:" ?
        // The following doesn't work in the latest EmberJS
        this.set('noseToAdd', null);                
    }.observes('noseToAdd')
});​
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T22:52:05+00:00Added an answer on June 4, 2026 at 10:52 pm

    Have you tried setting selection to null?

    UPDATE:

    This was a bug that has been fixed: https://github.com/emberjs/ember.js/commit/7a2a14b81aa7adf46c76c272f93c8aff31749582

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

{{view Ember.Select contentBinding=ResAdmin.adminController.priceCategories valueBinding=selectedRestaurant.PriceCategoryID optionLabelPath=content.name optionValuePath=content.id}} how can i add the default value like
I have a basic Ember application. It has 2 controls: a select element and
I've done a sample Ember.js integration with Chosen (https://github.com/harvesthq/chosen) Coffeescript: App.ChosenSelectView = Em.Select.extend({ didInsertElement:
I have an Ember.js app as follows (borrowed from this article on andyMatthews.net): View:
I have an Ember application with both a view and a controller: http://jsfiddle.net/gavriguy/EDr4G/ I
I found a good solution for a reusable select view here: select dropdown with
I would like to embed a SELECT inside a COUNT, but I can't find
I would like to direct the user to an appropriate download link per case.
My Query in file looks like this in the php file: SELECT p.products_id as
I currently have this query SELECT short_url, type, file_thumbnail, file_embed, media.id, user, media.file_url, votes,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.