Skip to content

Commit

Permalink
fix import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalou38 committed Nov 19, 2022
1 parent 9b4cf60 commit 67bc3f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/svelte/konsta-svelte.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import Toolbar from './components/Toolbar.svelte';
// eslint-disable-next-line
import KonstaProvider from './shared/KonstaProvider.svelte';
import { useTheme } from './shared/use-theme.js';
import { touchRipple } from './shared/touch-ripple-action';
import { touchRipple } from './shared/touch-ripple-action.js';

export {
// utils
Expand Down
14 changes: 7 additions & 7 deletions src/svelte/shared/touch-ripple-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import { useTouchRipple } from './use-touch-ripple.js';
* @returns void
*/
export function touchRipple(node, styles = true) {
if (!node) return;
if (styles) {
node.style.position = 'relative';
node.style.overflow = 'hidden';
}
const el = { current: node };
if (!node) return;
if (styles) {
node.style.position = 'relative';
node.style.overflow = 'hidden';
}
const el = { current: node };

useTouchRipple(el, true);
useTouchRipple(el, true);
}

0 comments on commit 67bc3f2

Please sign in to comment.