Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #34465
Closed
Open
Issue created Jul 09, 2021 by Administrator@rootContributor

Passing object as data attibute (popover, data-bs-delay)

Created by: rlidwka

I want to specify a delay for bootstrap popover using data attributes, different values for 'show' and 'hide'.

I'm trying data-bs-delay='{"show":500,"hide":100}', but it shows an error:

TypeError: TOOLTIP: Option "delay" provided type "string" but expected type "(number|object)".

It worked before in bootstrap 3.3, see https://github.com/twbs/bootstrap/issues/13874 and stackoverflow.

Now the code that parses JSON is apparently gone. :(

How can we solve it?

  • get JSON parsing back?
  • maybe separate attributes data-bs-delay-show, data-bs-delay-hide
  • maybe there is some HTML5 trickery to put an object into data-attribute I'm not aware of?

issue may be similar to https://github.com/twbs/bootstrap/pull/34259

Assignee
Assign to
Time tracking