Skip to content

Commit

Permalink
chore: replace queueMicrotask with setTimeout function
Browse files Browse the repository at this point in the history
  • Loading branch information
gerjanvangeest committed Jan 15, 2025
1 parent 3e4e325 commit aee2add
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/components/form-core/src/FormatMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ const FormatMixinImplementation = superclass =>
*/
__onPaste() {
this._isPasting = true;
queueMicrotask(() => {
setTimeout(() => {
this._isPasting = false;
});
}
Expand Down Expand Up @@ -608,7 +608,7 @@ const FormatMixinImplementation = superclass =>
/**
* This method will be called right before a parser or formatter gets called and computes
* the formatOptions.mode. In short, it gives meta info about how the user interacted with
* the form control, as these user interactions can infleunce the formatting/parsing behavior.
* the form control, as these user interactions can influence the formatting/parsing behavior.
*
* It's important that the behavior of these can be different during a paste or user edit,
* but not during programmatic setting of values (like setting modelValue).
Expand Down

0 comments on commit aee2add

Please sign in to comment.