Change click to mousedown/touchstart
Change click to mousedown/touchstart

When the user selects text inside the input and triggers the mouseup outside the input, the input-box will be hidden until it gets focus again.

TobitSoftware/chayns-components,TobitSoftware/chayns-components,TobitSoftware/chayns-components