Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Disable <x-filament::button> wire:navigate #11700

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

bert-w
Copy link
Contributor

@bert-w bert-w commented Mar 5, 2024

Description

This PR adds the ability to add :allow-browser-navigation="false" to the <x-filament::button> component. Adding this attribute disables the addition of wire:navigate even when in SPA mode.

Use case
For our package https://github.com/DutchCodingCompany/filament-socialite we'd like to disable browser-navigation for a specific button that sends the user to an external oauth provider, since browser-navigation is not allowed due to CORS restrictions. However, enabling SPA mode enables browser-navigation for all in-app routes (our route has a redirect so it is still counted as an in-app route, causing wire:navigate to be added).

@danharrin danharrin merged commit 023e875 into filamentphp:3.x Mar 5, 2024
10 checks passed
@danharrin danharrin added the enhancement New feature or request label Mar 8, 2024
@danharrin danharrin added this to the v3 milestone Mar 8, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants