How to omit the picking when I click on input?

I’m using jscolor with playcanvas
but when I click on input I have

Cannot read property ‘node’ of undefined

how to solve this problem I dont want to picking when I click the input
<input data-jscolor"{}">
picking in sense of picking the mesh instances
because input hasn’t any mesh instances

ok just

if(selection.length > 0 && selection[0] !== undefined){