Skip to content

Commit

Permalink
Fix: Compile prefix and suffix (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
swashbuck authored Feb 9, 2024
1 parent 5e1fdbc commit e482a16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/textinput.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { classes, templates } from 'core/js/reactHelpers';
import { classes, templates, compile } from 'core/js/reactHelpers';

export default function TextInput (props) {
const {
Expand Down Expand Up @@ -48,7 +48,7 @@ export default function TextInput (props) {
id={`${_id}-${index}-aria`}
htmlFor={`${_id}-${index}`}
aria-label={prefix}
dangerouslySetInnerHTML={{ __html: prefix }}
dangerouslySetInnerHTML={{ __html: compile(prefix, props) }}
>
</label>
</div>
Expand Down Expand Up @@ -83,7 +83,7 @@ export default function TextInput (props) {
id={`${_id}-${index}-aria`}
htmlFor={`${_id}-${index}`}
aria-label={suffix}
dangerouslySetInnerHTML={{ __html: suffix }}
dangerouslySetInnerHTML={{ __html: compile(suffix, props) }}
>
</label>
</div>
Expand Down

0 comments on commit e482a16

Please sign in to comment.