Skip to content

Commit

Permalink
update interface description
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekseyManetov committed Feb 5, 2025
1 parent 4172587 commit 91caddb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uui-core/src/data/forms/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export interface FormProps<T> {
* Called when form is unmounted, but user still have unsaved changes.
* Accepts a Promise<boolean | 'remain'> to be returned.
* If promise resolves to true - save procedure is performed.
* If promise resolves to false - localStorage will be cleaned.
* If promise resolves to 'remain' - localStorage remain as was and changes in form not saves.
* If promise resolves to false - save action will not be called, form will be unblocked.
* If promise resolves to 'remain' - form will be remained in the same state - blocked and not saved.
* The common use-case is to show a modal with "Save Changes?" dialog
* Skins usually implement this as default behavior. To prevent it, you can pass null to this prop to override it.
*/
Expand Down

0 comments on commit 91caddb

Please sign in to comment.