The-M-Project icon indicating copy to clipboard operation
The-M-Project copied to clipboard

Buttons and Labels are duplicated if included

Open stephentcannon opened this issue 12 years ago • 0 comments

If you include a Toolbar with child items in a header or footer or if you include items by themselves or as a group of items kind of like a widget in a content or other dom view area they are duplicated in the dom view on render.

They seem to increase in number based on the alphabetical order of the filename and/or class name though I have not investigated that.

I have tested this with Button and with Label.

If you change this in the render function...

this.html += '<div id="' + this.id + '"' + this.style() + '>';

to...

this.html =

Duplication stops. Not sure what other widgets or collections of widgets this affects or if removing it causes additional issues.'

stephentcannon avatar Jul 16 '12 21:07 stephentcannon