1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-06-27 16:36:00 +00:00

Extract Materialize Form Select controller

This commit is contained in:
Yassine Guedidi 2025-03-01 01:05:02 +01:00
parent 1b683dbb05
commit a7a4c5fefb
3 changed files with 15 additions and 5 deletions

View file

@ -0,0 +1,12 @@
import { Controller } from '@hotwired/stimulus';
import M from '@materializecss/materialize';
export default class extends Controller {
connect() {
this.instance = M.FormSelect.init(this.element.querySelector('select'));
}
disconnect() {
this.instance.destroy();
}
}

View file

@ -272,8 +272,6 @@ const articleScroll = () => {
};
$(document).ready(() => {
$('select').formSelect();
$('.fixed-action-btn').floatingActionButton();
stickyNav();