Enable inputmode for URL form fields by default
authorMarcel Werk <burntime@woltlab.com>
Thu, 27 Apr 2023 11:33:21 +0000 (13:33 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 27 Apr 2023 14:03:41 +0000 (16:03 +0200)
wcfsetup/install/files/lib/system/form/builder/field/UrlFormField.class.php

index ade83d429519a9b09b6cf26aeb6d5fd26c3eaca0..ebd9e9580212bf194694e385d1027f0457109ddf 100644 (file)
@@ -16,6 +16,13 @@ use wcf\util\Url;
  */
 class UrlFormField extends TextFormField
 {
+    public function __construct()
+    {
+        parent::__construct();
+
+        $this->inputMode('url');
+    }
+
     /**
      * @inheritDoc
      * @since       5.4