typed values in widget no longer lost on click (fixes #156)