Other attributes of IonInput are ignored when I set callback to ref. But it works fine with simple html input
const callback = useCallback((elem) => {
console.dir(elem);
}, []);
....
<IonInput
className="asdasd" // <-- className ignored
onIonChange={(e) => setText(e.detail.value)} // <-- this callback ignored too
ref={callback} // <-- If remove this line ion-input will start work fine
/>