Skip to content

Commit

Permalink
Mask component value not updated on change in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
enchev committed Sep 20, 2024
1 parent e7801e1 commit e6e7ec4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Radzen.Blazor/wwwroot/Radzen.Blazor.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ window.Radzen = {
return formatted;
}

if (window.safari !== undefined) {
el.onblur = function (e) {
el.dispatchEvent(new Event('change'));
};
}

var start = el.selectionStart != el.value.length ? el.selectionStart : -1;
var end = el.selectionEnd != el.value.length ? el.selectionEnd : -1;

Expand Down

0 comments on commit e6e7ec4

Please sign in to comment.