1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-22 09:54:24 +04:00

Enhance autosize and input mask initialization with conditional checks; update Eleventy config to set server passthrough copy behavior

This commit is contained in:
codecalm
2025-02-05 22:19:18 +01:00
parent d40dc60cd8
commit 37af5425ff
3 changed files with 3 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ import IMask from 'imask';
var maskElementList = [].slice.call(document.querySelectorAll('[data-mask]'));
maskElementList.map(function (maskEl) {
return new IMask(maskEl, {
IMask && new IMask(maskEl, {
mask: maskEl.dataset.mask,
lazy: maskEl.dataset['mask-visible'] === 'true'
})