Skip to content

Commit

Permalink
Merge pull request #668 from takenet/bugfix/mutable-prop-tooltip
Browse files Browse the repository at this point in the history
fix(tooltip): added mutable on text prop and prevent sidebar close wi…
  • Loading branch information
WillianLomeu authored Aug 31, 2023
2 parents bcffb64 + f51bae0 commit 1610b7c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2129,7 +2129,7 @@ export namespace Components {
/**
* Used to disable tooltip when the button are avalible
*/
"disabled": boolean;
"disabled"?: boolean;
/**
* Used to set tooltip position
*/
Expand Down
2 changes: 1 addition & 1 deletion src/components/sidebar/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class Sidebar {
}

private listiner = (event) => {
if (event.key == 'Escape') {
if (event.key == 'Escape' && this.type !== 'fixed') {
this.isOpen = false;
}
};
Expand Down
4 changes: 2 additions & 2 deletions src/components/tooltip/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ export class Tooltip {
/**
* Used to set tooltip text
*/
@Prop() tooltipText = 'Tooltip';
@Prop({ mutable: true }) tooltipText = 'Tooltip';

/**
* Used to disable tooltip when the button are avalible
*/
@Prop({ reflect: true }) disabled = false;
@Prop({ reflect: true }) disabled? = false;

/**
* Used to set tooltip position
Expand Down

0 comments on commit 1610b7c

Please sign in to comment.