You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use a lot of components, some are nested within each other. When I pass a decorator to my itAutocomplete component, it gets yielded to the itInput component through {{yield extra-attributes}}, then to an <input> through {{yield extra-attributes}} again. It then throws on this line because decorators is undefined.
Versions affected:
1.4.2
Platforms affected:
Ractive 1.4.2
Reproduction:
This playground will give the error I am describing. If you comment line 21 and uncomment line 22 you'll see that the error does not occur when passing a decorator through one layer of extra-attributes, as the itSelect still works.
The text was updated successfully, but these errors were encountered:
Sorry, my notification for this got buried in my dumpster fire of an inbox.
This is sort of a bug related to what's allowed to be yielded from within a component tag. Normally, a decorator cannot exist as a component attribute and is always just shuffled through into the extra-attributes partial, but if you wrap it in a partial, which is perfectly valid for a component, it gets hidden until render time. A cursory glance suggests that there's not great way to catch that without a whole bunch of overhead, but there is a pretty reasonable workaround: put the extra attributes yield in another partial passed to the inner component so as not to try to render the decorator on the intermediary component.
Description:
I use a lot of components, some are nested within each other. When I pass a decorator to my
itAutocomplete
component, it gets yielded to theitInput
component through{{yield extra-attributes}}
, then to an<input>
through{{yield extra-attributes}}
again. It then throws on this line becausedecorators
is undefined.Versions affected:
1.4.2
Platforms affected:
Ractive 1.4.2
Reproduction:
This playground will give the error I am describing. If you comment line 21 and uncomment line 22 you'll see that the error does not occur when passing a decorator through one layer of extra-attributes, as the
itSelect
still works.The text was updated successfully, but these errors were encountered: