Skip to content

Attribute put in lowercase? #481

Description

@real-felix

I just hit a very confusing behavior. I was following this event example for Alpine JS https://alpinejs.dev/essentials/events#listening-for-events-on-window and I replaced foo with my own signal:

a "@click"="$dispatch('showLangDialog')" {
    span { "Language" }
}
div x-data="{ show: false }" x-cloak x-show="show"
    "@showLangDialog.window"="show = true"
{
    etc.
}

To my surprise, the attribute from the latter snippet became @showlangdialog.window="show = true" in lowercase, which breaks the signal transmission. If it's not by accident, what is the reason why it's put in lowercase?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions