mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 03:22:11 +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 styles = require('./styles');
|
||||||
|
|
||||||
const ICON_FOR_TYPE = new Map([
|
const ICON_FOR_TYPE = new Map([
|
||||||
['movie', 'ic_movies' ],
|
['movie', 'ic_movies'],
|
||||||
['series', 'ic_series'],
|
['series', 'ic_series'],
|
||||||
['channel', 'ic_channels'],
|
['channel', 'ic_channels'],
|
||||||
['tv', 'ic_tv'],
|
['tv', 'ic_tv'],
|
||||||
|
|
@ -42,6 +42,7 @@ const MetaItem = React.memo(({ className, type, name, poster, posterShape, playI
|
||||||
if (typeof menuOptionOnSelect === 'function') {
|
if (typeof menuOptionOnSelect === 'function') {
|
||||||
menuOptionOnSelect({
|
menuOptionOnSelect({
|
||||||
type: 'select-option',
|
type: 'select-option',
|
||||||
|
value: event.value,
|
||||||
dataset: dataset,
|
dataset: dataset,
|
||||||
reactEvent: event.reactEvent,
|
reactEvent: event.reactEvent,
|
||||||
nativeEvent: event.nativeEvent
|
nativeEvent: event.nativeEvent
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue