Button works only when doubleclick

I am using ‘set input mode ui only’ in both places. Inventory Window and Inventory Slot.
Is it bad to use it in two places?