|
|
@@ -19,7 +19,7 @@ const Options: React.FC<OwnProps> = (props) => { |
|
|
|
const [selectedOptions, setSelectedOptions] = useState<string[]>([]); |
|
|
|
const [textInput, setTextInput] = useState<string>(""); |
|
|
|
const [answers, setAnswers] = useState<number>(0); |
|
|
|
const inputRef = useRef<HTMLInputElement>(null); |
|
|
|
const inputRef = useRef<HTMLTextAreaElement>(null); |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
setSelected(undefined); |
|
|
@@ -98,12 +98,14 @@ const Options: React.FC<OwnProps> = (props) => { |
|
|
|
} |
|
|
|
{props.type === "textInput" && |
|
|
|
<div className={styles.options}> |
|
|
|
<input |
|
|
|
type="text" |
|
|
|
<textarea |
|
|
|
className={styles.textInput} |
|
|
|
placeholder="enter your answer" |
|
|
|
rows={20} |
|
|
|
cols={35} |
|
|
|
placeholder="enter your answer here" |
|
|
|
ref={inputRef} |
|
|
|
onChange={handleInput} /> |
|
|
|
onChange={handleInput}> |
|
|
|
</textarea> |
|
|
|
</div> |
|
|
|
} |
|
|
|
</IonList> |
|
|
|