Hi all and @tonykip
… found unfortunately a bug in the solution (yours and mine). Please try my code. Click into a column, e.g. Cat1 and type very fast something on the keyboard and press ok. In some cases, the value will not be saved and jumps back to the previous value. This appears also in your example:
https://discuss.streamlit.io/t/session-state-logic/51572
After some tests, this is for every second change, where it doesn´t work.
Any idea how to solve this??