mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-21 12:49:20 +00:00
refactor(tooltip-definition): use arrow functions
This commit is contained in:
parent
72210bac0d
commit
c4743708e7
1 changed files with 2 additions and 6 deletions
|
@ -25,13 +25,9 @@
|
||||||
/** Obtain a reference to the button HTML element */
|
/** Obtain a reference to the button HTML element */
|
||||||
export let ref = null;
|
export let ref = null;
|
||||||
|
|
||||||
function hide() {
|
const hide = () => (open = false);
|
||||||
open = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function show() {
|
const show = () => (open = true);
|
||||||
open = true;
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:window
|
<svelte:window
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue