Skip to content

can't seem to open any modal-- alpine error? #148

@nearueng

Description

@nearueng

I keep getting

Alpine Expression Error: Cannot read properties of undefined (reading 'querySelector')
Expression: "show"

Followed the docs exactly, and here is what everything looks like.

<x-buttons.primary wire:click="$emit('openModal', 'test-listing')">
        Create Listing
</x-buttons.primary>
<?php

namespace App\Http\Livewire;

use LivewireUI\Modal\ModalComponent;

class TestListing extends ModalComponent
{
    public function render()
    {
        return view('livewire.test-listing');
    }
}

Has anyone else run into this before? Is it a new update? I'm on Alpine 3.8.1 & Livewire 2.9.0.

What could I be forgetting?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions