fixes #5957 adds click functionality on tag names to fill the input selector as well