koumoul-dev / vuetify-jsonschema-form

Create beautiful and low-effort forms that output valid data. Published on npm as @koumoul/vjsf.
https://koumoul-dev.github.io/vuetify-jsonschema-form/latest/
MIT License
546 stars 155 forks source link

persistent prop for editable array #250

Closed hnhlcgcg closed 3 years ago

hnhlcgcg commented 3 years ago

Hello,

I am using the editable array feature and would like to make the dialog component persistent. The persistent prop is currently not being implemented when added to the schema. A code snippet is below:

"x-options": {
   "dialogProps": {
       "maxWidth": 700,
        "persistent": true
      },
      "editMode": "dialog"
 },

Expected Behavior: When persistent is set to true, the dialogue component does not close out if a user clicks outside of the component. Actual Behavior: Dialogue component still closes on esc or clicking outside component

Thank you!

albanm commented 3 years ago

Hello,

Indeed, the standard closing of the dialog was overriden by vjsf to fix a bug and the persistent prop was ignored. This should be fixed in version 1.25.0-beta.12 that I just published.

hnhlcgcg commented 3 years ago

Great, thank you!