From 5672467c45ad2b3d2a4731ce5516746f3a0e6d3b Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 19 Dec 2020 13:16:44 +0100 Subject: [PATCH] Add autocomplete support for url form field --- .../system/form/builder/field/UrlFormField.class.php | 12 ++++++++++++ 1 file changed, 12 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 7f56e0b0fc..d40a818ba7 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 @@ -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 */ -- 2.20.1