mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-29 05:38:48 +00:00
attach value to select-option event
This commit is contained in:
parent
739c06b998
commit
1a7dacfa00
1 changed files with 2 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ const useDataset = require('stremio/common/useDataset');
|
|||
const styles = require('./styles');
|
||||
|
||||
const ICON_FOR_TYPE = new Map([
|
||||
['movie', 'ic_movies' ],
|
||||
['movie', 'ic_movies'],
|
||||
['series', 'ic_series'],
|
||||
['channel', 'ic_channels'],
|
||||
['tv', 'ic_tv'],
|
||||
|
|
@ -42,6 +42,7 @@ const MetaItem = React.memo(({ className, type, name, poster, posterShape, playI
|
|||
if (typeof menuOptionOnSelect === 'function') {
|
||||
menuOptionOnSelect({
|
||||
type: 'select-option',
|
||||
value: event.value,
|
||||
dataset: dataset,
|
||||
reactEvent: event.reactEvent,
|
||||
nativeEvent: event.nativeEvent
|
||||
|
|
|
|||
Loading…
Reference in a new issue