mirror of
https://github.com/tabler/tabler.git
synced 2025-12-26 11:16:12 +04:00
Tooltip and popover placement fix
This commit is contained in:
@@ -12,8 +12,8 @@ import './dropdown';
|
||||
let options = {
|
||||
delay: {show: 50, hide: 50},
|
||||
html: true,
|
||||
placement: 'auto'
|
||||
};
|
||||
placement: tooltipTriggerEl.getAttribute('data-bs-placement') ?? 'auto'
|
||||
};
|
||||
return new bootstrap.Tooltip(tooltipTriggerEl, options);
|
||||
});
|
||||
|
||||
@@ -23,8 +23,8 @@ import './dropdown';
|
||||
popoverTriggerList.map(function (popoverTriggerEl) {
|
||||
let options = {
|
||||
delay: {show: 50, hide: 50},
|
||||
html: tooltipTriggerEl.getAttribute('data-bs-html') ?? false,
|
||||
placement: tooltipTriggerEl.getAttribute('data-bs-placement') ?? 'auto'
|
||||
html: popoverTriggerEl.getAttribute('data-bs-html') ?? false,
|
||||
placement: popoverTriggerEl.getAttribute('data-bs-placement') ?? 'auto'
|
||||
};
|
||||
return new bootstrap.Popover(popoverTriggerEl, options);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user