Ok, so I have this pen of a search box on Codepen…
When it is active and I press the cancel-icon it works and then becomes small again.
But when it is not active(from the start) it works when I press AROUND the icon. But it does not work when I press the exact cacnel-icon. I have to press AROUND it but on the search-circle.
Can somebody tell me what script or so I should add additionally to this code to make it clickable?
Har dto describe what I mean. But below it is active and then it is possible to click the cancel-icon to make the field become small:
But when it is not active it looks like this below. And in that case it is only possible to click around the icon to make the search field become active:
Codepen: