File tree Expand file tree Collapse file tree 2 files changed +16
-44
lines changed
src/templates/FieldHelpTemplate Expand file tree Collapse file tree 2 files changed +16
-44
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export default function FieldHelpTemplate<
2020 return (
2121 < div id = { id } className = 'ant-form-item-extra' >
2222 < div className = 'help-block' >
23- < RichHelp help = { help } registry = { registry } uiSchema = { uiSchema } />
23+ { typeof help === 'string' ? help : < RichHelp help = { help } registry = { registry } uiSchema = { uiSchema } /> }
2424 </ div >
2525 </ div >
2626 ) ;
Original file line number Diff line number Diff line change @@ -6282,12 +6282,12 @@ exports[`single fields checkboxes widget with custom options and labels 1`] = `
62826282 <div
62836283 class=""
62846284 >
6285- <div
6285+ <p
62866286 class="help-block"
62876287 id="root__help"
62886288 >
62896289 Select all that apply
6290- </div >
6290+ </p >
62916291 </div>
62926292 </div>
62936293 <div
@@ -7575,12 +7575,12 @@ exports[`single fields help and error display 1`] = `
75757575 <div
75767576 class="ant-form-item-explain-error"
75777577 >
7578- <div
7578+ <p
75797579 class="help-block"
75807580 id="root__help"
75817581 >
75827582 help me!
7583- </div >
7583+ </p >
75847584 </div>
75857585 </div>
75867586 </div>
@@ -19012,23 +19012,12 @@ exports[`single fields string field field with markdown help and description 1`]
1901219012 <div
1901319013 class=""
1901419014 >
19015- <div
19015+ <p
1901619016 class="help-block"
1901719017 id="root__help"
1901819018 >
19019- <span>
19020- This is
19021- <strong>
19022- help
19023- </strong>
19024- text with
19025- <a
19026- href="https://example.com"
19027- >
19028- a link
19029- </a>
19030- </span>
19031- </div>
19019+ This is **help** text with [a link](https://example.com)
19020+ </p>
1903219021 </div>
1903319022 </div>
1903419023 <div
@@ -19124,23 +19113,12 @@ exports[`single fields string field field with markdown help text 1`] = `
1912419113 <div
1912519114 class=""
1912619115 >
19127- <div
19116+ <p
1912819117 class="help-block"
1912919118 id="root__help"
1913019119 >
19131- <span>
19132- This is
19133- <strong>
19134- markdown
19135- </strong>
19136- help text with
19137- <a
19138- href="https://example.com"
19139- >
19140- a link
19141- </a>
19142- </span>
19143- </div>
19120+ This is **markdown** help text with [a link](https://example.com)
19121+ </p>
1914419122 </div>
1914519123 </div>
1914619124 <div
@@ -19236,12 +19214,12 @@ exports[`single fields string field field with markdown help text without enabli
1923619214 <div
1923719215 class=""
1923819216 >
19239- <div
19217+ <p
1924019218 class="help-block"
1924119219 id="root__help"
1924219220 >
1924319221 This is **markdown** help text with [a link](https://example.com)
19244- </div >
19222+ </p >
1924519223 </div>
1924619224 </div>
1924719225 <div
@@ -19635,18 +19613,12 @@ exports[`single fields string field required field with markdown help 1`] = `
1963519613 <div
1963619614 class=""
1963719615 >
19638- <div
19616+ <p
1963919617 class="help-block"
1964019618 id="root__help"
1964119619 >
19642- <span>
19643- This field is
19644- <strong>
19645- required
19646- </strong>
19647- . Please provide a value.
19648- </span>
19649- </div>
19620+ This field is **required**. Please provide a value.
19621+ </p>
1965019622 </div>
1965119623 </div>
1965219624 <div
You can’t perform that action at this time.
0 commit comments