Skip to content

[form] Something in form prompt handling changed to asynchronous #2796

@mvorisek

Description

@mvorisek

Bug Report

After v2.9.2 some code allowing race condition was introduced.

With https://cdn.jsdelivr.net/npm/fomantic-ui@2.9.2/dist/semantic.js there is no problem. With https://cdn.jsdelivr.net/npm/fomantic-ui@2.9.3-beta.35/dist/semantic.js the problem is present.

This is important as before AJAX/submit, prompts are removed but AJAX response can add them back quickly.

Steps to reproduce

  1. open https://jsfiddle.net/mL3ko1st/1/
  2. click "Save"
  3. notice prompt displayed with text: "some error action 45"
  4. click "Save" again, notice the prompt is gone

Expected result

prompt must stay as in v2.9.2

Version

>2.9.2 <2.9.3, ie. develop between these releases

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugAny issue which is a bug or PR which fixes a bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions