Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tooltip.js error with table editable #39743

Closed
3 tasks done
bounlu opened this issue Mar 6, 2024 · 3 comments
Closed
3 tasks done

tooltip.js error with table editable #39743

bounlu opened this issue Mar 6, 2024 · 3 comments

Comments

@bounlu
Copy link

bounlu commented Mar 6, 2024

Prerequisites

Describe the issue

After submitting an editable field, the Console gives the below error even though the editing succeeds:

tooltip.js:534 Uncaught TypeError: Cannot convert undefined or null to object
    at Function.values (<anonymous>)
    at us._isWithActiveTrigger (tooltip.js:534:19)
    at tooltip.js:268:16
    at g (index.js:226:51)
    at HTMLDivElement.a (index.js:247:5)
    at s (index.js:71:11)
    at index.js:253:7

Reduced test cases

Replace this:

  _isWithActiveTrigger() {
    return Object.values(this._activeTrigger).includes(true)
  }

with this:

_isWithActiveTrigger() {
    if (this._activeTrigger && typeof this._activeTrigger === 'object') {
        return Object.values(this._activeTrigger).includes(true);
    }
    return false; // or handle the case when _activeTrigger is not an object
}

What operating system(s) are you seeing the problem on?

macOS, Linux

What browser(s) are you seeing the problem on?

Chrome, Firefox

What version of Bootstrap are you using?

5.3.1

Copy link
Contributor

github-actions bot commented Mar 6, 2024

Hello @bounlu. Bug reports must include a live demo of the issue. Per our contributing guidelines, please create a reduced test case on CodePen or StackBlitz and report back with your link, Bootstrap version, and specific browser and Operating System details.

@batje
Copy link

batje commented Mar 6, 2024

This is a duplicate of #37474

@julien-deramond
Copy link
Member

Thanks @batje! This is indeed a duplicate so I'll close this one. @bounlu, you can add a comment in #37474 with your patch suggestion if it's not already mentioned in the discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants