79325179

Date: 2025-01-02 23:21:23
Score: 1.5
Natty:
Report link

You should also post the relevant parts of the view.

I will however try to give a solution based on the informations provided.

wire:navigate causes the update of the body of the document without reloading the page, so any references set by external libraries are lost.

Adding an event listener on the wire:navigate event to re-initialize the daterangepicker should resolve the problem:

document.addEventListener('livewire:navigated', () => {

    $('input[name="dtmDispatchDateRange"]').daterangepicker({
        locale:{
            format: 'MM/DD/YYYY'
        }
    });

    .....
});

If this doesn't work, please show the view code to help us better understand your situation

Reasons:
  • RegEx Blacklisted phrase (2.5): please show
  • RegEx Blacklisted phrase (1): help us
  • Long answer (-0.5):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: TUPKAP