Fixes #4613 by omitting tokeninput callbacks on edit.