Giter Site home page Giter Site logo

Comments (5)

aliqasemzadeh avatar aliqasemzadeh commented on June 14, 2024

I think you miss : https://github.com/alighasemzadeh/livewire-bootstrap-modal#modal-views

from livewire-bootstrap-modal.

michele-grifa avatar michele-grifa commented on June 14, 2024

I already had the correct modal view, in fact the modal open normally and works.

from livewire-bootstrap-modal.

aliqasemzadeh avatar aliqasemzadeh commented on June 14, 2024

Please share your code with me.

from livewire-bootstrap-modal.

michele-grifa avatar michele-grifa commented on June 14, 2024

Update: i re-checked the code and I noticed that I was emitting another event instead of the showModal. Now the code is correct, but when I try to show a modal I get the following error in the console:

undefined is not an object (evaluating 'this._config.backdrop')

After this error the modal is added to the dom and I see only a blur.

Modal Livewire Component

<div>
    <div id='modal_consegna_test' class="modal" tabindex="-1" wire:ignore.self>
        <div class="modal-dialog modal-xl">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">Modifica Consegna TEST</h5>
                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                </div>
                <div class="modal-body">
                    <h5>TEST</h5>
                </div>
            </div>
        </div>
    </div>
</div>

from livewire-bootstrap-modal.

aliqasemzadeh avatar aliqasemzadeh commented on June 14, 2024

@michele-grifa
Check this example and JS in resource that I build for BAP.
https://github.com/alighasemzadeh/bap/blob/master/resources/views/livewire/admin/user/edit.blade.php

from livewire-bootstrap-modal.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.