viclafouch / mui-chips-input

📌 A chips input designed for MUI (Material ui) V6
https://viclafouch.github.io/mui-chips-input/
MIT License
83 stars 19 forks source link

fix: add ability to use external inputRef #18

Closed anavalo closed 1 year ago

anavalo commented 1 year ago

This PR makes the passed inputRef in MuiChipsInput bind with the input.

Since the component uses all MUI TextField props, it should use the passed inputRef if any.

closes: #19

viclafouch commented 1 year ago

You can simply pass the ref prop to the component. It's the same as inputRef here.

But I've still released the fix : https://github.com/viclafouch/mui-chips-input/releases/tag/v2.0.1