mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Remove hotkeys and fix tag selection (#505)
* Remove broken scene player hotkeys * Disable closing tag select menu after a select
This commit is contained in:
@@ -7,14 +7,19 @@ interface IProps {
|
||||
disabled?: boolean;
|
||||
numericValue: number | undefined;
|
||||
mandatory?: boolean;
|
||||
onValueChange(valueAsNumber: number | undefined, valueAsString?: string): void;
|
||||
onValueChange(
|
||||
valueAsNumber: number | undefined,
|
||||
valueAsString?: string
|
||||
): void;
|
||||
onReset?(): void;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export const DurationInput: React.FC<IProps> = (props: IProps) => {
|
||||
const [value, setValue] = useState<string | undefined>(
|
||||
props.numericValue !== undefined ? DurationUtils.secondsToString(props.numericValue) : undefined
|
||||
props.numericValue !== undefined
|
||||
? DurationUtils.secondsToString(props.numericValue)
|
||||
: undefined
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user