Skip to content

Pikaday field error 'Converting circular structure to JSON' when the 'pikadayOptions' property is used #561

Closed
@guzun

Description

@guzun
  • I'm submitting a ...
    • [-] bug report
  • Do you want to request a feature or report a bug?
    Report a bug
  • What is the current behavior?
    Currently when I try to use the Pikaday field and pass the 'pikadayOptions' property, then the form gives me the following error after the date is selected from the date piker calendar:

TypeError: Converting circular structure to JSON (in Chrome)
and
TypeError: "cyclic object value" (in Firefox)

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via

https://jsfiddle.net/allexg/6hxq2rbo/19/ - check this jsfiddle to see issue

  • What is the expected behavior?
    The expected behavior is to not have the js error.

  • Please tell us about your environment:
    Vue.js v2.5.20
    vue-form-generator v2.1.0
    pikaday v1.8.0
    moment.js v2.20.1

    • Browser: [all | Crome Version 70.0.3538.110 | Firefox 63.0.3 (64-bit) ]
  • Other information
    Does anyone know how to fix this issue ?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions