Alpine.js – Show an input field and add focus to it at the same time

I have a button, and when a user clicks it, an input element should be shown and it should have focus. I tried this:

Get data attributes on click element alpinejs

  • Use Shopify/draggable with Alpine.js x-for directive

    I’m trying to make the sortable plugin from Shopify working with Alpine.js but when I drag and drop the items, it generate the error in the console “Alpine Error: ‘ReferenceError: framework is …