Skip to content

Tooltip throws "Cannot convert undefined or null to object" at Tooltip._isWithActiveTrigger #50

@karendolan

Description

@karendolan

Existing Bootstrap Issue ticket contains workarounds: twbs/bootstrap#37474
that might be implemented in https://github.com/harvard-edtech/dce-reactkit/blob/main/src/components/Tooltip.tsx#L77-L83

It seems to be a race condition between Tooltip hide() and and dispose(). The race condition happens relatively frequently, maybe 5-10% of the time. It's uncaught, so an ugly stack trace is shown and page has to be refreshed to bring back the app.

To Duplicate: Open a dce-reactkit Tooltip and change views to cause the tooltip to hide/dispose itself at the same time. Continue until the error appears.

Error:

 Uncaught TypeError: Cannot convert undefined or null to object
at Object. values (<anonymous>)
at Tooltip._isWithActiveTrigger (bootstrap.esm. js: 3558:1)
at Tooltip._leave (bootstrap.esm.js: 3543:1)
at complete (bootstrap.esm.js: 3315:1)
at execute (bootstrap.esm.]s: 249:1)
at HTMLDivElement.handler (bootstrap.esm.js:267:1) at triggerTransitionEnd (bootstrap.esm.js: 122:1)

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