Skip to content

Changing the style of the .ts-control element using classes #461

Discussion options

You must be logged in to vote

Nevermind, I can just do it like this.

    document.querySelectorAll('.tom-select .ts-control').forEach((el) => {
        el.classList.add(
            '!border-none', 
            '!bg-white', 
            '!bg-none', 
            '!bg-white', 
            '!rounded-l-none', 
            '!border-none', 
            '!shadow-none',
            '!overflow-visible',
        );
    });

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mariusberget92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant