mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-29 02:30:10 +02:00
Fix toggling search on mobile.
This commit is contained in:
parent
28aac994a3
commit
5a1ba40446
|
@ -15,7 +15,7 @@
|
|||
class="search"
|
||||
type="button"
|
||||
aria-label="Search messages in this channel"
|
||||
@click.prevent="toggleSearch"
|
||||
@mousedown.prevent="toggleSearch"
|
||||
/>
|
||||
</form>
|
||||
</template>
|
||||
|
@ -40,13 +40,14 @@ export default {
|
|||
closeSearch() {
|
||||
this.searchOpened = false;
|
||||
},
|
||||
toggleSearch(event) {
|
||||
event.preventDefault();
|
||||
this.searchOpened = !this.searchOpened;
|
||||
|
||||
toggleSearch() {
|
||||
if (this.searchOpened) {
|
||||
this.$refs.searchInputField.focus();
|
||||
this.$refs.searchInputField.blur();
|
||||
return;
|
||||
}
|
||||
|
||||
this.searchOpened = true;
|
||||
this.$refs.searchInputField.focus();
|
||||
},
|
||||
searchMessages(event) {
|
||||
event.preventDefault();
|
||||
|
|
Loading…
Reference in a new issue