From 5092b8a186e4808f2743e6d34b3722faf8c135bd Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 21 Dec 2020 19:18:49 +0100 Subject: [PATCH] Add input mode support for `UrlFormField` --- .../lib/system/form/builder/field/UrlFormField.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wcfsetup/install/files/lib/system/form/builder/field/UrlFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/UrlFormField.class.php index d40a818ba7..6da7ca8cb4 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/UrlFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/UrlFormField.class.php @@ -26,6 +26,13 @@ class UrlFormField extends TextFormField { ]; } + /** + * @inheritDoc + */ + protected function getValidInputModes(): array { + return ['url']; + } + /** * @inheritDoc */ -- 2.20.1