Skip to content

handler.destroy() should remove ptr element immediately #120

@jarmo

Description

@jarmo

Bug report

When calling destroy or destroyAll then ptrElement might become visible for a short period of time when its styleEl is messed up (see #119) due to it not getting removed from DOM immediately.

Current behavior:

When calling handler's destroy function then it does not remove ptrElement. It is being removed by onReset which might be called from multiple codepaths. However, in onReset a timeout is being used which in turn might cause a situation where ptrElement is removed from DOM after its handler's destroy has been called many cycles ago (default removal timeout is 500ms for example).

Expected behavior:

ptrElement should be removed immediately when _handler.destroy is been executed to avoid possible problems where handler has been destroyed and its element will be removed later by co-incidence by some timer.

JSFiddle URL for demo with bug:

N/A

Browsers affected:

Every browser

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions