useRef with null argument

This commit is contained in:
NikolaBorislavovHristov 2019-08-10 08:34:50 +03:00
parent e575746ce2
commit 7c1c7f8d33

View file

@ -6,7 +6,7 @@ const { Input, Popup, useBinaryState } = require('stremio/common');
const styles = require('./styles');
const PickerMenu = ({ name, value, options, onChange }) => {
const popupRef = React.useRef();
const popupRef = React.useRef(null);
const [open, onOpen, onClose] = useBinaryState(false);
const label = typeof value === 'string' ? value : name;
const optionOnClick = React.useCallback((event) => {