Skip to content
This repository was archived by the owner on Aug 5, 2019. It is now read-only.
This repository was archived by the owner on Aug 5, 2019. It is now read-only.

DatePicker leaks DOM Objects #500

Open
@twistedpair

Description

@twistedpair

To reproduce:

Visit: http://gwtbootstrap.github.io/#component:datepicker

In Chrome, open Dev Tools and run document.getElementsByClassName('datepicker').length

You should get 10

Now jump back and forth between the following two links about four times:
http://gwtbootstrap.github.io/#gwt:
http://gwtbootstrap.github.io/#component:datepicker

On the console again run document.getElementsByClassName('datepicker').length

You should get about 81

Because the DatePicker JS is blithely injecting more datepicker divs into the page, they just keep racking up. It's worth noting that these are being added directly to the root node of the page, rather than into the content frames that GWT normally uses.

I'd hope we could cleanly destroy these on transition to another presenter, but am not sure if that's the role of the component or the JS lib. Let me know what you think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions