Page 1 of 1

ckEditor not updates its value

Posted: 14 May 2021, 11:49
by Swapfaces
Greetings!

I have to disable 'Save' button depending on is ckEditor component clear.

Everything's going fine (when editor is clear - the button is disabled) untill I interract with selectOneMenu component on the page.

Just after I changed some value in the selectOneMenu, there starts a little bug.

The bug: you type the letter "a" - the value is "a", than you type again the letter "a" - the value is "aa", than you press "backspace" - the value is "a", and "backspace" again - the field is clear, but the value is still being "a".

Thanks for any information!

P.S. if my explanation isn't understandable, I can record a little screencast.

Re: ckEditor not updates its value

Posted: 14 May 2021, 13:14
by Melloware
What would be better is a small reproducer so I can debug your issue. Can you create a small PrimeFaces Test showing me the issue?

Use: https://github.com/primefaces/primefaces-test

Re: ckEditor not updates its value

Posted: 17 May 2021, 10:27
by Swapfaces
Hello, Melloware!

Somehow I've fixed the issue in last friday (and forgot how), but I did test app with a new bug :D This bug is unrelated to the topic, and mostly, I think, it's about my inattention.


When you change a value in seleOneMenu, the binded variable have to be set up to null, when there's no chosen option.

https://github.com/soroka-ihor/primefaces-test/