Add input mode support for `UrlFormField`
authorMatthias Schmidt <gravatronics@live.com>
Mon, 21 Dec 2020 18:18:49 +0000 (19:18 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 21 Dec 2020 18:18:49 +0000 (19:18 +0100)
wcfsetup/install/files/lib/system/form/builder/field/UrlFormField.class.php

index d40a818ba736e5801302cda22bf8b2712b83bbb4..6da7ca8cb4ef14e12ae23177529fdc53159cad74 100644 (file)
@@ -26,6 +26,13 @@ class UrlFormField extends TextFormField {
                ];
        }
        
+       /**
+        * @inheritDoc
+        */
+       protected function getValidInputModes(): array {
+               return ['url'];
+       }
+       
        /**
         * @inheritDoc
         */