]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/commitdiff
Stop event processing for upload button
authorJohannes Zellner <johannes@nebulon.de>
Wed, 18 May 2016 10:24:10 +0000 (12:24 +0200)
committerJohannes Zellner <johannes@nebulon.de>
Wed, 18 May 2016 10:24:11 +0000 (12:24 +0200)
This prevents changing the url

app/index.html

index 93fa57e27a11e25b9d79500686c02576486e7e34..7faff43313c4fed9e648536ddee41e56c5435314 100644 (file)
                 <center>
                     <form id="fileUploadForm">
                         <input type="file" v-el:upload style="display: none" id="uploadInput"/>
-                        <button class="btn btn-primary" v-on:click="upload()" id="uploadButton">Upload</button>
+                        <button class="btn btn-primary" v-on:click.stop.prevent="upload()" id="uploadButton">Upload</button>
                     </form>
                 </center>
                 <br/>