Skip to content

Commit 8c94671

Browse files
committed
Restore brackets around input
1 parent aa2b28f commit 8c94671

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/components/content/IsaacCoordinateQuestion.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const CoordinateInput = (props: CoordinateInputProps) => {
5353
const {value, placeholderValues, numberOfDimensions, onChange, readonly, remove} = props;
5454
return <span className="coordinate-input">{[...Array(numberOfDimensions)].map((_, i) =>
5555
<>
56-
<Input
56+
(<Input
5757
key={i}
5858
type="text"
5959
className="force-print"
@@ -62,7 +62,7 @@ const CoordinateInput = (props: CoordinateInputProps) => {
6262
onChange={event => onChange({...value, coordinates: value.coordinates && value.coordinates.length ? value.coordinates.with(i, event.target.value) :
6363
(event.target.value === "" ? undefined : Array<string>(numberOfDimensions).fill("").with(i, event.target.value))})}
6464
readOnly={readonly}
65-
/>
65+
/>)
6666
{(i < numberOfDimensions - 1) && <span className="coordinate-input-separator">,&nbsp;</span>}
6767
</>)}
6868
{remove && <Button className="ms-3" size="sm" onClick={remove}>Delete</Button>}

0 commit comments

Comments
 (0)