ember-basic-dropdown icon indicating copy to clipboard operation
ember-basic-dropdown copied to clipboard

Cannot read property 'args' of undefined with Ember v3.17.0-beta.1

Open josemarluedke opened this issue 5 years ago • 5 comments

Using v3.0.0-beta.8 with Ember Canary (259779443483ae15b7fa5dae4c7ea9d9ff46db88) causes the following error:

Cannot read property 'args' of undefined.

I'm using basic dropdown with power select.

Screen Shot 2020-01-16 at 11 57 27 AM Screen Shot 2020-01-16 at 11 57 48 AM

josemarluedke avatar Jan 16 '20 19:01 josemarluedke

Now that Ember v3.17.0-beta.1 is out, tests are failing with that version.

josemarluedke avatar Jan 21 '20 04:01 josemarluedke

Interesting, I'll take a look

cibernox avatar Jan 21 '20 08:01 cibernox

This may be an issue with Ember 3.17-beta, because I'm also getting a different (?) error with 3.17-beta.1 and ember-basic-dropdown 2.0.5:

Uncaught (in promise) TypeError: Cannot read property 'appendChild' of null
    at BasicDropdownContent.animateOut (basic-dropdown-content.js:183)
    at Object.destroyModifier (will-destroy.js:66)
    at CustomModifierState.destroy (index.js:7048)
    at StringDestroyableDestructor.[DID_DROP] (util.js:344)
    at util.js:255
    at Set.forEach (<anonymous>)
    at didDestroyAssociated (util.js:254)
    at SimpleDestructor.[DID_DROP] (util.js:368)
    at util.js:255
    at Set.forEach (<anonymous>)

This happens on dropdown close, though there seems to be another issue with the dropdown not opening immediately when the trigger is clicked -- it only opens after a couple seconds.

paulcwatts avatar Jan 23 '20 20:01 paulcwatts

Hi, I'm also seeing this error when closing the dropdown after upgrading to [email protected]

Uncaught (in promise) TypeError: Cannot read property 'appendChild' of null
    at BasicDropdownContent.animateOut (basic-dropdown-content.js:202)
    at Object.destroyModifier (will-destroy.js:68)
    at CustomModifierState.destroy (index.js:7063)
    at StringDestroyableDestructor.[DID_DROP] (util.js:350)
    at util.js:261
    at Set.forEach (<anonymous>)
    at didDestroyAssociated (util.js:260)
    at SimpleDestructor.[DID_DROP] (util.js:374)
    at util.js:261
    at Set.forEach (<anonymous>)

renderInplace is false: Screenshot 2020-03-06 at 16 31 56 (2)

urbany avatar Mar 06 '20 16:03 urbany

I have created an issue for this : https://github.com/cibernox/ember-power-select/issues/1338

oliverlj avatar Mar 06 '20 21:03 oliverlj