preactjs/preact-router

Problems with link anchors

Open

#260 opened on 2018年1月10日

GitHub で見る
 (15 comments) (0 reactions) (0 assignees)JavaScript (152 forks)github user discovery
has fixhelp wanted

Repository metrics

Stars
 (1,055 stars)
PR merge metrics
 (PR metrics pending)

説明

Whenever I click on a anchor link (for example 'href="#123"'), this

addEventListener('popstate', function () {
				routeTo(getCurrentUrl());
			});

fires and reloads the according route component, what some-have screws up the anchor and anyways is redundant.

コントリビューターガイド