Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4829

Changing the value in one power-select box , it alternately changes the same value for another power-select box

$
0
0

@Rinold_Simon wrote:

I used custom-search-action in #ember-power-select, changing the value in one power-select box , it alternately changes the value(sets the same value as selected in 1st select box)for another power-select box too.

Below is the handlebar code:

{{#each model.hpqualifications as |hpqualification|}}
{{#power-select
  selected=hpqualification.hoprofile
  search=(action "hoProfile")
  onchange=(action (mut hpqualification.hoprofile.name) value="name")
  as |repo|
}}
  {{repo.name}}
{{/power-select}}
{{/each}}

The above code generated two select box since #each method has two data.

Everything works fine. But when selecting the value from dropdown for 1st select box, the 2nd select box too changes to the same value.

How to fix this ?

Please refer to my stackoverflow question for other files and data format.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4829

Trending Articles