Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make array work with t-att-class #1608

Open
brboi opened this issue Apr 23, 2024 · 0 comments
Open

make array work with t-att-class #1608

brboi opened this issue Apr 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@brboi
Copy link
Contributor

brboi commented Apr 23, 2024

class C extends Component {
    static template = xml`<div t-att-class="classes"/>`;
    get classes {
        return ["foo", "bar"];
    }
}

renders as

<div class="0 1"/>

instead of

<div class="foo bar"/>
@sdegueldre sdegueldre added the enhancement New feature or request label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants