openwrt-one: Avoid page scroll when clicking a thumbnail
This commit is contained in:
parent
2d0cc8abe8
commit
9a7ab2b0de
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@
|
||||||
<img x-bind:src="selected_image" src="{% static "img/projects/openwrt/banana_pi_openwrt_one_case_5.jpg" %}">
|
<img x-bind:src="selected_image" src="{% static "img/projects/openwrt/banana_pi_openwrt_one_case_5.jpg" %}">
|
||||||
<div class="flex flex-row flex-wrap">
|
<div class="flex flex-row flex-wrap">
|
||||||
<template x-for="image in images" :key="image">
|
<template x-for="image in images" :key="image">
|
||||||
<a href="#" x-on:click="selected_image = image; console.log(image)"> <img x-bind:src="image" alt="Thumbnail" class="w4"></a>
|
<a href="#" x-on:click.prevent="selected_image = image"> <img x-bind:src="image" alt="Thumbnail" class="w4"></a>
|
||||||
<pre x-text="selected_image">foo</pre>
|
<pre x-text="selected_image">foo</pre>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue