mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-02 14:24:19 +01:00
7c7f08b5e0
* Use `[].concat` instead of direct spreading nodelist Co-authored-by: XhmikosR <xhmikosr@gmail.com>
8 lines
245 B
JavaScript
8 lines
245 B
JavaScript
import 'popper.js'
|
|
import { Tooltip } from '../../../dist/js/bootstrap.esm.js'
|
|
|
|
window.addEventListener('load', () => {
|
|
[].concat(...document.querySelectorAll('[data-bs-toggle="tooltip"]'))
|
|
.map(tooltipNode => new Tooltip(tooltipNode))
|
|
})
|