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

Buttons are not clickable #54

Open
jannaelghabaty opened this issue Mar 9, 2023 · 0 comments
Open

Buttons are not clickable #54

jannaelghabaty opened this issue Mar 9, 2023 · 0 comments

Comments

@jannaelghabaty
Copy link

I am trying to add a simple button using svelte as shown below. The button appears but is not clickable and appears to have no event listeners attached to it. I am having this problem with any event listener in the whole template project except the links since we explicitly specify the href link. Is there a step I am missing to get it to work?

example code in the "Home.svelte" file

<script>
	function handleClick() {
		alert('clicked')
	}
</script>

<button on:click={handleClick}>Click me </button>

Screenshot 2023-03-09 at 4 49 00 PM

I am a newbie so your help would be so much appreciated, thank you :)

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