Open funkdoobiest opened 5 years ago
Can you provide some code to examine
Sure.
Button::make('Approve', 'inquiry-approve')
->style('primary-outline')
->confirm('Are you sure?')
->visible($this->status == 'pending'),
Button::make('Decline', 'inquiry-decline')
->style('danger-outline')
->confirm('Are you sure?')
->visible($this->status == 'pending'),
"Approve" button is not working, "Decline" is. If I remove "Decline", "Approve" works. This code worked before update to L6 und latest Nova version.
More details: if I remove the "confirm", both buttons are working. Seems like if two buttons with confirmation are on same page, only last is opening the modal.
Confirming that this issue exists on Laravel Nova v2.5.
Only the last button of the last row can be clicked when using confirm().
Confirming that this issue exists on Nova 2.6.1
Button::make('Quick Pay')->confirm('Are you sure?', view('partials.quickpay')->render())
the confirm dialog does not show, except for the last row in the index list.
People are welcome to contribute a solution. I'll review
Tried to find a solution, but my Vue-skills are not good enough ;-)
I updated to v2.8.0 today. Same thing is still happening.
I have same issue in 2.8.0
and still the same issue in 2.9.2 - could you please fix this?
Any updates on this? I tried to find a solution but couldnt. My js skills are not good as well :(
@dillingham Please review the pull request, thanks :)
What's the current state of this issue? It seems I have the same problem on an app I'm building.
When I add more than one button, only the last added button will work. Clicking on other buttons have no effect. There is no error in console nor an xhr request will be fired.