Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sayed_laravel's avatar

Disable remove on Back Space Multi-Select Filament

I have Multi Select with a searchable option and I want to disable remove an option when the user hit the back space key word

0 likes
2 replies
enoch91's avatar

@sayed_laravel you can use JS to achieve this, like so:

const multiSelect = document.querySelector('.your-multi-select-class');

multiSelect.addEventListener('keydown', function(event) {
    if (event.keyCode === 8) {
        event.preventDefault();
    }
});

Please or to participate in this conversation.