Skip to content

Commit

Permalink
Fix the issue of sensitive character filtering being fixed still lead…
Browse files Browse the repository at this point in the history
…s to its display. (#16261)
  • Loading branch information
bofeng-song authored Sep 19, 2023
1 parent 5682bbf commit c58cb54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion platforms/minigame/common/engine/Editbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
cbs.onKeyboardConfirm = function (res) {
res && res.value ? delegate._editBoxEditingReturn(res.value) : delegate._editBoxEditingReturn();
const cbs = self._eventListeners;
cbs.onKeyboardComplete && cbs.onKeyboardComplete();
cbs.onKeyboardComplete && cbs.onKeyboardComplete(res);
};

cbs.onKeyboardComplete = function (res) {
Expand All @@ -96,6 +96,9 @@
if (cc.sys.platform !== cc.sys.Platform.WECHAT_MINI_PROGRAM) {
self._unregisterKeyboardEvent();
}
if (res && res.value && res.value !== delegate.string) {
delegate._editBoxTextChanged(res.value);
}
res && res.value ? delegate._editBoxEditingDidEnded(res.value) : delegate._editBoxEditingDidEnded();
};

Expand Down

0 comments on commit c58cb54

Please sign in to comment.