mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Poprawki filtrów
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
</section>
|
||||
|
||||
<section class="card_authors-search">
|
||||
<input type="text" :placeholder="$t('filters.authors-search')" name="authors" @input="handleAuthorsInput" />
|
||||
<input type="text" :placeholder="$t('filters.authors-search')" name="authors" v-model="authorsInputValue" @input="handleAuthorsInput" />
|
||||
</section>
|
||||
|
||||
<section class="card_sliders">
|
||||
@@ -125,6 +125,7 @@ export default defineComponent({
|
||||
saveOptions: false,
|
||||
STORAGE_KEY: 'options_saved',
|
||||
|
||||
authorsInputValue: '',
|
||||
minimumHours: 0,
|
||||
|
||||
currentRegion: { id: '', value: '' },
|
||||
@@ -174,7 +175,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
handleAuthorsInput(e: Event) {
|
||||
if ((e.target as HTMLInputElement).value.length < 3) return;
|
||||
// if ((e.target as HTMLInputElement).value.length < 3) return;
|
||||
|
||||
clearTimeout(this.delayInputTimer);
|
||||
|
||||
@@ -244,6 +245,8 @@ export default defineComponent({
|
||||
StorageManager.setNumericValue(slider.name, slider.value);
|
||||
});
|
||||
|
||||
this.authorsInputValue = '';
|
||||
|
||||
this.minimumHours = 0;
|
||||
this.changeNumericFilterValue('onlineFromHours', this.minimumHours, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user