You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when trying to access the instance when using this React library, it seems only available at flatpickr (without the leading underscore). This should probably be fixed for consistency.
Example:
constfp=useRef(null)useEffect(()=>{// According to the Flatpickr docs, I'd expect the flatpickr instance available like this:fp.current._flatpickr.set('allowInput',true);// but instead, it needs to be accessed like this:fp.current.flatpickr.set('allowinput',true);},[somethingElse]);return(<Flatpickrref={fp}/>);
The text was updated successfully, but these errors were encountered:
The main docs for Flatpickr say that the instance can be accessed on the dom element at the
_flatpickr
propertyhttps://flatpickr.js.org/instance-methods-properties-elements/#retrieving-the-flatpickr-instance
However, when trying to access the instance when using this React library, it seems only available at
flatpickr
(without the leading underscore). This should probably be fixed for consistency.Example:
The text was updated successfully, but these errors were encountered: