Commit 48c8c503 authored by ∞'s avatar 💻

MaterializeCSS AJAX text input init

parent 7538f16e
......@@ -15,6 +15,14 @@ export default function(el) {
})
}
for (let element of el.querySelectorAll('textarea')) {
M.textareaAutoResize(element)
}
for (let element of el.querySelectorAll('input')) {
M.updateTextFields()
}
// compensate for https://github.com/Dogfalo/materialize/issues/6049
for (let select of el.querySelectorAll('select.invalid')) {
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment