Fixed event conflict that made widget lose focus when added from sidebar