Skip to content

Commit

Permalink
Remove Form onChange handler for clearing prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Sep 22, 2023
1 parent 05d1fde commit bb68815
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -530,11 +530,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));
}
Expand Down

0 comments on commit bb68815

Please sign in to comment.