ember-paper: paper-select : parentElement is null error after using

Hi,

First of all: thanks for all of the work you folks do on Ember Paper!

I just upgraded ember from 3.15 to 3.17, and ember-paper from .beta.26 to .beta.29 and am having a problem with ember-select.

The drop-down has a list of states, and when you select a state you get a list of the politicians in that state. It starts out ok, and when you select a state you get the correct list of pols, but in so doing you get a parentElement is null error (which you can see in the console) and the app’s entire UI is frozen.

Also note that in the last screenshot, the selected state, e.g. Massachusetts, does not appear in the select-box, instead the “Select A State” placeholder has “moved up” above the control and stayed there.

I have attached screenshots of the process (in order, i.e. 1_xxx, 2_yyy, 3_zzz). Here is the code that I use, which has worked for a long time - even with the new “Octane Way” of doing things.

Can someone shed some light on this? Obviously I had to back down to .beta.26 so I can use the app.

Actually, I guess I should try moving to .27 and then .28 to see exactly where this happens. I will do that and update this issue with my findings. In the meantime, here is the code that I use (it’s a component):

` <PaperSelect data-test-select-pols-state @label=“State” @placeholder=“Select a State” @options={{this.states}} @selected={{this.selectedState}} @onChange={{fn this.filter “state”}} class=“column-control” as |state| > {{state.name}} </PaperSelect>

`

1_InitialState 2_States 3_AfterSelection

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 7
  • Comments: 27 (9 by maintainers)

Most upvoted comments

Glad I could be of help.

@larryh Thank you. beta26 got rid of the “parentElement is null” error. And I found I hadn’t named a default implementation of Sass.