mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-21 20:59: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 */
|
||||
export let ref = null;
|
||||
|
||||
function hide() {
|
||||
open = false;
|
||||
}
|
||||
const hide = () => (open = false);
|
||||
|
||||
function show() {
|
||||
open = true;
|
||||
}
|
||||
const show = () => (open = true);
|
||||
</script>
|
||||
|
||||
<svelte:window
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue