Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Prevent form validation on "Enter" press

Chocobozzzb9b9059f91e4
diff --git a/client/src/app/+search/search-filters.component.html b/client/src/app/+search/search-filters.component.html
index 6ea33bef5c..e78b280431 100644
--- a/client/src/app/+search/search-filters.component.html
+++ b/client/src/app/+search/search-filters.component.html
@@ -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>