mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 17:45:22 +00:00
build(deps): bump @blueprintjs/popover2 from 1.11.3 to 1.12.0 (#1454)
* build(deps): bump @blueprintjs/popover2 from 1.11.3 to 1.12.0 Bumps [@blueprintjs/popover2](https://github.com/palantir/blueprint/tree/HEAD/packages/core) from 1.11.3 to 1.12.0. - [Release notes](https://github.com/palantir/blueprint/releases) - [Changelog](https://github.com/palantir/blueprint/blob/develop/CHANGELOG.md) - [Commits](https://github.com/palantir/blueprint/commits/@blueprintjs/popover2@1.12.0/packages/core) --- updated-dependencies: - dependency-name: "@blueprintjs/popover2" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix breaking change in blueprintjs popover2 work around https://github.com/palantir/blueprint/issues/5889 Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: David Lechner <david@pybricks.com>
This commit is contained in:
co-authored by
David Lechner
parent
939ded73fa
commit
7b0dc47b04
@@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// Copyright (c) 2020-2022 The Pybricks Authors
|
||||
// Copyright (c) 2020-2023 The Pybricks Authors
|
||||
|
||||
import {
|
||||
Button,
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
SpinnerSize,
|
||||
useHotkeys,
|
||||
} from '@blueprintjs/core';
|
||||
import { Tooltip2 } from '@blueprintjs/popover2';
|
||||
import { Popover2HoverTargetHandlers, Tooltip2 } from '@blueprintjs/popover2';
|
||||
import { mergeProps } from '@react-aria/utils';
|
||||
import classNames from 'classnames';
|
||||
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
@@ -110,7 +110,8 @@ const ActionButton: React.VoidFunctionComponent<ActionButtonProps> = ({
|
||||
aria-disabled={enabled === false}
|
||||
aria-label={label}
|
||||
elementRef={tooltipTargetRef as React.Ref<HTMLButtonElement>}
|
||||
{...mergeProps(tooltipTargetProps, {
|
||||
// https://github.com/palantir/blueprint/issues/5889
|
||||
{...mergeProps(tooltipTargetProps as Popover2HoverTargetHandlers, {
|
||||
className: classNames(
|
||||
'pb-toolbar-action-button',
|
||||
enabled === false && Classes.DISABLED,
|
||||
|
||||
Reference in New Issue
Block a user