mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-24 10:37:16 +00:00
Fix context menu bug
I guess React does not like it when these are strings
This commit is contained in:
parent
75a51f369e
commit
88f86eb6f4
1 changed files with 5 additions and 2 deletions
|
|
@ -34,8 +34,8 @@ class Portal extends React.Component<PortalProps> {
|
|||
|
||||
render() {
|
||||
const style = {
|
||||
top: String(this.props.top),
|
||||
left: String(this.props.left),
|
||||
top: this.props.top,
|
||||
left: this.props.left,
|
||||
// WTF Typescript. There's got to be a better way.
|
||||
position: "absolute" as "absolute"
|
||||
};
|
||||
|
|
@ -78,7 +78,10 @@ export const LinkNode = (props: LinkNodeProps) => (
|
|||
interface NodeProps {
|
||||
label: string;
|
||||
checked: boolean;
|
||||
hotkey?: string;
|
||||
className?: string;
|
||||
// TODO: Figure out how to do passthrough props
|
||||
onClick?: () => void;
|
||||
}
|
||||
|
||||
export const Node = (props: NodeProps) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue