Prevent form validation on "Enter" press

This commit is contained in:
Chocobozzz
2026-07-03 15:06:18 +02:00
parent 8453f0587e
commit b9b9059f91
@@ -72,7 +72,7 @@
</div>
<div class="row">
<div class="ps-0 col-sm-6">
<div class="col-sm-6">
<input
(change)="onDurationOrPublishedUpdated()"
(keydown.enter)="$event.preventDefault()"
@@ -85,7 +85,7 @@
class="form-control"
>
</div>
<div class="pe-0 col-sm-6">
<div class="col-sm-6">
<input
(change)="onDurationOrPublishedUpdated()"
(keydown.enter)="$event.preventDefault()"
@@ -268,13 +268,12 @@
<button type="button" i18n class="reset-button me-3" (click)="reset()">Reset</button>
}
<input
<button
class="peertube-button primary-button"
type="submit"
i18n-value
value="Filter"
type="button"
i18n-ariaLabel
aria-label="Filter the results and automatically close the filters panel"
>
i18n
>Filter</button>
</div>
</form>