@@ -1,6 +1,7 @@
11import React, { useState } from 'react';
22import { Text, Box, Checkbox, Icon, Row } from '@tlon/indigo-react';
33import './AdvancedOptions.scss';
4+import styled from 'styled-components';
45
56interface AdvancedOptionsProps {
67 options: {
@@ -11,6 +12,15 @@ interface AdvancedOptionsProps {
1112 }[];
1213}
1314
15+// Hide this input completely
16+const HiddenInput = styled.input`
17+ position: absolute;
18+ opacity: 0;
19+ height: 0;
20+ width: 0;
21+ margin: 0px;
22+`;
23+
1424export default function AdvancedOptions({ options }: AdvancedOptionsProps) {
1525 const showingAny = options.reduce(
1626 (anySelected, { selected }) => anySelected || selected,
@@ -33,6 +43,13 @@ export default function AdvancedOptions({ options }: AdvancedOptionsProps) {
3343 <Box className="options">
3444 {options.map((option, ind) => (
3545 <Row className="option" key={`adv-opt-${ind}`}>
46+ <HiddenInput
47+ checked={option.selected}
48+ name={option.key}
49+ id={option.key}
50+ type="checkbox"
51+ readOnly
52+ />
3653 <Checkbox
3754 className={`checkbox ${option.selected ? 'checked' : ''}`}
3855 {...option}