Issue with modal not submiting form

The form is not submitted in the modal.
The problem is that when reading the form it doesn’t recognize the livewire parameters,because its not calling the method “addNote”.
When submit the page just refreshes.

Тhis is the form witch different livewire component.

    <div class="col-md-12">
        <h5 class="font-weight-bolder text-primary">Add Note</h5>
        <form wire:submit.prevent="addNote">
            <div class="form-group">
                <label for="noteMessage">Message</label>
                <textarea class="form-control" id="noteMessage" wire:model.defer="noteMessage" rows="3" placeholder="Write your note"></textarea>
            </div>
            <button type="submit" data-bs-dismiss="modal" class="btn bg-gradient-primary mt-3">Submit</button>
        </form>
    </div>
</div>

and the modal:

                <!-- module messages -->
                <div class="row">
                    <div class="col-md-12 text-center">
                        @if($instructor_note)
                            <h5 class="font-weight-bolder text-primary">{{$instructor_note}}</h5>
                        @else
                            <h5 class="font-weight-bolder text-primary">No added notes</h5>
                        @endif
                    </div>
                </div>
                <!-- module messages end -->
                
                <!-- instructor note input -->
                @if(auth()->user()->instructor_approval !== null)
                 <livewire:instructor-notes :course_schedule="$course_schedule">
                @endif
                <!-- instructor note input end -->
            </div>
            <div class="modal-footer">
                <button type="button" class="btn bg-gradient-secondary" data-bs-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>

the modal component:


namespace AppHttpLivewire;

use AppEventsopenModalGlobal;
use AppModelsCourseSchedule;
use AppModelsInstructorNote;
use LivewireComponent;

class Schedule extends Component
{
    public $componentName = 'Schedule';
    public string $events = '';
    public int $course_id = 0;
    private $schedule = '';
    protected $listeners = ['echo:calendar,CalendarBroadcast' => 'refreshCalendar'];
    public $course_schedule;
    public $noteMessage;

    //function for opening the schedule info modal
    public function openScheduleInfoModal($course_schedule_id)
    {
        $course_schedule = CourseSchedule::find($course_schedule_id);
        $instructor_note = InstructorNote::where('course_schedule_id', '=', $course_schedule_id)->value('note');
        $this->refreshCalendar();
        $modalId = 'scheduleInfoModal';
        $html = view('modals.schedule-info')->with('course_schedule', $course_schedule)->with('instructor_note', $instructor_note)->render();
        $session_id = session()->getId();
        event(new openModalGlobal($html, $modalId, $session_id, $this->course_id > 0 ? 'course/' . $this->course_id : 'dashboard'));
    }
}

The only thing I’ve tried is to put the form in a different component hoping it won’t conflict with the modal.
But without success

New contributor

new_with_js is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật