Skip to content

Commit

Permalink
🩹 [#2081] -- Disable 'openWhenEmpty' feature in edit grid
Browse files Browse the repository at this point in the history
It's bugged in Formio, see formio/formio.js#4620
  • Loading branch information
sergei-maertens committed Oct 4, 2022
1 parent 89dc70e commit 9390509
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/openforms/js/components/form/editGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,20 @@ const EDIT_FORM_TABS = [
key: 'display',
label: 'Display',
components: [
{
type: 'checkbox',
label: 'Open First Row when Empty',
key: 'openWhenEmpty',
tooltip:
'Check this if you would like to open up the first row when the EditGrid is empty',
weight: 1000,
input: true,
conditional: {
json: {'!==': [{var: 'data.modal'}, true]},
},
},
// this is broken in the frontend in current versions of Formio, see
// https://github.com/formio/formio.js/issues/4620 and #2081
// {
// type: 'checkbox',
// label: 'Open First Row when Empty',
// key: 'openWhenEmpty',
// tooltip:
// 'Check this if you would like to open up the first row when the EditGrid is empty',
// weight: 1000,
// input: true,
// conditional: {
// json: {'!==': [{var: 'data.modal'}, true]},
// },
// },
{
type: 'checkbox',
label: 'Disable Adding / Removing Rows',
Expand Down

0 comments on commit 9390509

Please sign in to comment.