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:
@@ -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'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user