marko-js-archive / marko-widgets

[LEGACY] Module to support binding of behavior to rendered UI components rendered on the server or client
http://v3.markojs.com/docs/marko-widgets/
MIT License
142 stars 40 forks source link

Calling A component in for loop . only trigering first element #174

Closed anupnitkkr closed 6 years ago

anupnitkkr commented 7 years ago

<for(filterlist in filter.arr)>

        </for>

----------- listing-filter-checkbox ---------

  • anupnitkkr commented 7 years ago

    /Users/anup.kumar1/Documents/webapp/node_modules/marko/compiler/Compiler.js:126 throw error; ^

    Error: An error occurred while trying to compile template at path "/Users/anup.kumar1/Documents/webapp/girf/components/listing-filter-checkbox/template.marko". Error(s) in template: 1) [girf/components/listing-filter-checkbox/template.marko:2:0] Unable to handle event ""click"". HTML element is not nested within a widget.

    anupdineout commented 7 years ago

    closing this

    shanimal commented 5 years ago

    I solved this specific error by adding w-bind to the root element of my template.