diff --git a/src/Form.php b/src/Form.php index d91354f454..5f6e201b8d 100644 --- a/src/Form.php +++ b/src/Form.php @@ -545,11 +545,6 @@ public function setupAjaxSubmit(): void 'serializeForm' => true, ], $this->apiConfig)); - // fix remove prompt for dropdown - // https://github.com/fomantic/Fomantic-UI/issues/2797 - // [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)); }