Setup onClick handlers again after repaint operation

[#47350021]