From aaf0d147ceb23bfed311d1b97aabe046020f5f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Mon, 22 May 2023 13:33:04 +0200 Subject: [PATCH] Remove Form onChange handler for clearing prompts --- src/Form.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Form.php b/src/Form.php index 1e1401ea70..3e6d6b8e23 100644 --- a/src/Form.php +++ b/src/Form.php @@ -541,10 +541,6 @@ public function setupAjaxSubmit(): void 'serializeForm' => true, ], $this->apiConfig)); - // [name] in selector is to suppress https://github.com/fomantic/Fomantic-UI/commit/facbca003cf0da465af7d44af41462e736d3eb8b - // console errors from Multiline/vue fields - $this->on('change', '.field input[name], .field textarea[name], .field select[name]', $this->js()->form('remove prompt', new JsExpression('$(this).attr(\'name\')'))); - if (!$this->canLeave) { $this->js(true, (new JsChain('atk.formService'))->preventFormLeave($this->name)); }