mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 10:42:12 +00:00
useRef with null argument
This commit is contained in:
parent
e575746ce2
commit
7c1c7f8d33
1 changed files with 1 additions and 1 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue