The txtSearch control should be a text input control - based on your screenshot, it looks like you added a label control.
If txtSearch were a text input control, the icon should look like this:
If you remove your current txtSearch control and replace it with a text input control, the error should go away.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.