Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

ion-back-button will only show with explicit defaulted href #15

Open
Tommertom opened this issue Jan 1, 2023 · 0 comments
Open

ion-back-button will only show with explicit defaulted href #15

Tommertom opened this issue Jan 1, 2023 · 0 comments

Comments

@Tommertom
Copy link
Owner

ionic-team/ionic-framework#26550

An ion-back-button will not show in a SvelteKit project - if it does not have an explicit default-href or initialize does not have explicit default path.

Example:

<script lang="ts">
	import { close } from 'ionicons/icons';
</script>

<ion-header>
	<ion-toolbar>
		<ion-back-button text="Volver" icon={close} on:click={console.log} />
	</ion-toolbar>
</ion-header>

Will not show the back-button.

This will work:

<ion-back-button default-href="/"></ion-back-button>

But is boilerplate also given earlier issue - ionic-team/ionic-framework#19305

So when I add { backButtonDefaultHref: '' } to initialize() taken from @ionic/core, it does show

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant