Skip to content

Commit

Permalink
pkp/pkp-lib#9717 Use updated instead of update for stripUnsafeHtml di…
Browse files Browse the repository at this point in the history
…rective
  • Loading branch information
blesildaramirez committed Feb 16, 2025
1 parent 1ada646 commit dbdbbd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directives/stripUnsafeHtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const stripUnsafeHtml = {
el.innerHTML = cleanContent;
},
// Called whenever the bound value changes.
update(el, binding) {
updated(el, binding) {
// Only re-sanitize and update if the value has changed, handling null and undefined
if (binding.value !== binding.oldValue) {
const value = binding.value == null ? '' : String(binding.value);
Expand Down

0 comments on commit dbdbbd8

Please sign in to comment.