Skip to content

Commit

Permalink
form Tag Popover
Browse files Browse the repository at this point in the history
  • Loading branch information
haishanh committed Jun 30, 2024
1 parent 963b86f commit e32f6da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/lib/client/form.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function validate<V extends { [key: string]: string }>(
value: V,
) {
const keys: (keyof V)[] = Object.keys(value);
const validatedValue: Partial<{[k in keyof V]: string}> = {};
const validatedValue: Partial<{ [k in keyof V]: string }> = {};

const error: Partial<{ [k in keyof V]: string }> = {};
for (const k of keys) error[k] = '';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/autocomplte/Tag.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import VisuallyHidden from '$lib/components/base/VisuallyHidden.svelte';
export let color : keyof typeof colorMap = '1';
export let color: keyof typeof colorMap = '1';
export let hasClose = true;
export let tag: { name: string };
Expand Down
5 changes: 1 addition & 4 deletions src/lib/components/base/popover/Popover.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
let style = 'top:0;left:0;';
function handlePopoverPositionChange(opts: {
position: { top: number; left: number };
placement: PopoverPlacement;
}) {
function handlePopoverPositionChange(opts: { position: { top: number; left: number }; placement: PopoverPlacement }) {
const { top, left } = opts.position;
style = `top:${top}px;left:${left}px`;
dispatch(EVENT.position, opts);
Expand Down

0 comments on commit e32f6da

Please sign in to comment.