diff --git a/components/src/components/Map/Component.form.ts b/components/src/components/Map/Component.form.ts index 20c3c4533..fd051ab8e 100644 --- a/components/src/components/Map/Component.form.ts +++ b/components/src/components/Map/Component.form.ts @@ -1,14 +1,43 @@ import baseEditForm from 'formiojs/components/_classes/component/Component.form'; import EditData from './editForm/Component.edit.data'; -import EditDisplay from './editForm/Component.edit.display'; -import SimpleApi from '../Common/Simple.edit.api'; -import SimpleConditional from '../Common/Simple.edit.conditional'; import AdvancedEditLogic from '../Common/Advanced.edit.logic'; -import AdvancedEditLayout from '../Common/Advanced.edit.layout'; export default function (...extend) { return baseEditForm( [ - EditDisplay, + { + key: 'display', + components: [ + { + // You can ignore existing fields. + key: 'placeholder', + ignore: true, + }, + { + key: 'tableView', + ignore: true, + }, + { + key: 'hidden', + ignore: true, + }, + { + key: 'autofocus', + ignore: true, + }, + { + key: 'tabindex', + ignore: true, + }, + { + key: 'modalEdit', + ignore: true, + }, + { + key: 'disabled', + ignore: true, + }, + ], + }, EditData, { key: 'data', @@ -24,7 +53,7 @@ export default function (...extend) { }, { key: 'layout', - components: AdvancedEditLayout, + ignore: true, }, ], ...extend diff --git a/components/src/components/Map/editForm/Component.edit.display.ts b/components/src/components/Map/editForm/Component.edit.display.ts index 5c0cae03f..53fd494a3 100644 --- a/components/src/components/Map/editForm/Component.edit.display.ts +++ b/components/src/components/Map/editForm/Component.edit.display.ts @@ -1,24 +1,28 @@ import common from '../../Common/Simple.edit.display'; export default [ - ...common, - { - key: 'refreshOnChange', - ignore: true - }, - { - key: 'className', - ignore: true, - }, - { - key: 'prefix', - ignore: true - }, - { - key: 'suffix', - ignore: true - }, - { - key: 'labelPosition', - ignore: true, - }, + ...common, + { + key: 'refreshOnChange', + ignore: true, + }, + { + key: 'className', + ignore: true, + }, + { + key: 'prefix', + ignore: true, + }, + { + key: 'suffix', + ignore: true, + }, + { + key: 'labelPosition', + ignore: true, + }, + { + key: 'placeholder', + ignore: true, + }, ];