Closed greystate closed 4 years ago
@greystate if it works, it works - I have no issue with changing that method. Wonder if this would have any impact on #20 (which I've kind of been ignoring...)
Thanks for the speedy PR too!
I've updated the PR with a condensed version that uses the closest() method and goes directly for the .umb-nested-content-property-container
ancestor.
I've tried installing the built 2.1.2-alpha ZIP in a v8.7.0 where it worked "as usual".
Will try in a v8.6.4 as well just to double check that it still works there.
Tried installing in an Umbraco v8.6.4 too - works as usual.
Awesome, thanks @greystate! I think I might have a look too at how this all works (or doesn't) with block list, then bundle it into a V3 release.
This fixes #22 by using the
.findAncestor()
function instead of directly going for the.parentElement
.A few questions though:
.umb-nested-content-property-container
right away?.closest()
method for.findAncestor()
? I noticed it's already being used in the button.component.js file.