Making UI-Expand macro of RefinedToolkit work

Since Scroll Viewport has to work around a few limitations with links, which is why an anchor always includes a href-attribute.

Because the UI-Expand is working with those anchors, Scroll Viewport is reloading the page if clicking on the macro.

You can fix this problem by removing the href-attribute of the class rwui_expand via jQuery:


Removing href-attribute from .rwui_expand

<script>
	$('.rwui_expand').removeAttr('href')
</script>
JS

It is the best for adding this script before the closing tag of the body.


Cookie Notice

We use cookies to create a secure and effective browsing experience for our website visitors and to understand how you use our site (i.e. Google Analytics). For more information:
Click Here

OK Don't track me.