Skip to content

Commit

Permalink
Merge pull request #100 from HE-Arc/simon-plumey-99-les-pompier-au-se…
Browse files Browse the repository at this point in the history
…cours-ya-le-feu

Le fix
  • Loading branch information
Krucksy authored Dec 18, 2023
2 parents e3c31f8 + 031e31b commit 458d39d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/js/components/comparaison.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const time = ref({
});
function resetFields() {
emit('clear-history');
title.value = ''
artist.value.label = 'Artist ?'
Expand Down
3 changes: 2 additions & 1 deletion resources/js/components/search-bar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ async function sendProposition(songId) {
v-on:keyup.enter="songs.length > 0 ? sendProposition(songs[focusIndex].id) : null"
v-on:keydown.arrow-up="focusIndex > 0 ? focusIndex-- : null"
v-on:keydown.arrow-down="focusIndex < songs.length - 1 ? focusIndex++ : null" class="neon-effect-cyan-off"
type="text" @focusout="songs = [], focusIndex = -1" placeholder="Taper le nom d'une musique">
v-on:keydown.escape="songs = []"
type="text" @focusout="focusIndex = -1" placeholder="Taper le nom d'une musique">
<ul class="propositions-list">
<li v-for="song, key in songs" @click="sendProposition(song.id)"
@mouseover="focusIndex = key"
Expand Down

0 comments on commit 458d39d

Please sign in to comment.