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:
InfiniteTF
2020-04-29 01:55:34 +02:00
committed by GitHub
parent 52a1059380
commit a0306bfbd2
24 changed files with 116 additions and 142 deletions

View File

@@ -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(() => {