I have made a codesandbox example with my case and need help making it work. Here is the link to the example.
Repro steps:
onBlur
is triggered.</>
icon on the top-left.My initial goal is to confirm this mechanism is by design or a bug and I tried to ask to the community before opening a ticket on the github repository.
You may also have noticed that the logging system is not working properly in my example.
I tried to stack all the logs - onChange
, onBlur
but it is showing only the last log. It works fine when I click on the Add
button. Maybe there is something wrong with react hook usage.
Can someone please help me with the above issues?
onBlur
is not triggered on code edit mode in the Jodit
editor. Is it by design or a bug?Thank you in advance.
onBlur
is not called because inside jodit
a separate textarea
is used to display the code, this is either a bug in jodit-react
or in jodit
itselfjodit-react
callbacks for textarea
are added inside useEffect
which is called only when the config
is changed.const appendLog = useCallback(
(message) => {
setLogs(oldLogs => [...oldLogs, message]);
},
[]
);