Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6.0.0 console.log #182

Closed
akb5566 opened this issue Dec 14, 2024 · 1 comment
Closed

6.0.0 console.log #182

akb5566 opened this issue Dec 14, 2024 · 1 comment

Comments

@akb5566
Copy link

akb5566 commented Dec 14, 2024

  1. In the 6.0.0 version, SveltyPicker seems to be printing debug console.log() to dev console.

  2. I think the Working with dates doc page can use some example. e.g. I'm doing the following binding, is this the correct/intended way or am I doing some wrong? I don't know because there is no example.

import SveltyPicker, { formatDate, parseDate } from 'svelty-picker';
import { en} from 'svelty-picker/i18n';


<SveltyPicker
  mode="date"
  format="yyyy/mm/dd"
  bind:value={
    () => {
      return formatDate(date, 'yyyy/mm/dd', en, 'standard');
    },
    (v) => {
      date = parseDate(v, 'yyyy/mm/dd', en, 'standard');
    }
  }
/>

Thanks you.

mskocik added a commit that referenced this issue Dec 14, 2024
@mskocik
Copy link
Owner

mskocik commented Dec 14, 2024

You are right, the function binding example was linked only in migration guide, I've added example based on your code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants