Clicking on close icon should lose focus from q-input. Check codepen.
Also add .prevent modifier.
@metalsadman Thank you. It worked. But my actual use case is different, I have updated codepen. Now it is not working as expected.