Add autocomplete support for url form field
authorMatthias Schmidt <gravatronics@live.com>
Sat, 19 Dec 2020 12:16:44 +0000 (13:16 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 21 Dec 2020 17:53:09 +0000 (18:53 +0100)
wcfsetup/install/files/lib/system/form/builder/field/UrlFormField.class.php

index 7f56e0b0fc02ea2304faddc31aed6222ebad84b6..d40a818ba736e5801302cda22bf8b2712b83bbb4 100644 (file)
@@ -14,6 +14,18 @@ use wcf\util\Url;
  * @since      5.2
  */
 class UrlFormField extends TextFormField {
+       /**
+        * @inheritDoc
+        * @since       5.4
+        */
+       protected function getValidAutoCompleteTokens(): array {
+               return [
+                       'url',
+                       'photo',
+                       'impp',
+               ];
+       }
+       
        /**
         * @inheritDoc
         */