Element onClick is not working inside TextInput

there’s an element called endIconConainer in my TextInput component which gives me an error and which has an onClick on it that doesn’t work

https://www.awesomescreenshot.com/video/12908525?key=62af937bed41e83ed8cdb92d5e0d5cb0

image.png