mathInput within a multiple choice question

<problem>
  <p>Which of the following is true of <m>x^2-1</m>? Select all that apply.</p>
  <choiceInput selectMultiple forAnswer="$ans1">
    <choice name="choice1">The expression is a monomial</choice>
    <choice name="choice2">The expression is a binomial</choice>
    <choice name="choice3">The expression is a trinomial</choice>
    <choice name="choice4">
      The expression can be factored by using the difference of squares formula
      and it factors to <mathInput name="userInput1" />
    </choice>
    <choice name="choice5">
      The expression can be factored by using the square of sum formula and it
      factors to <mathInput name="userInput2" />
    </choice>
    <choice name="choice6">
      The expression can be factored by using the square of difference formula
      and it factors to <mathInput name="userInput3" />
    </choice>
  </choiceInput> <answer name="ans1" symbolicEquality>
    <award>
      <when>
        $choice1.selected=false and $choice2.selected=true and $choice3.selected=false
        and $choice4.selected=true and $choice5.selected=false and $choice6.selected=false
        and $userInput1=(x+1)(x-1)
      </when>
    </award>
  </answer>
</problem>

When trying to click into a math input box within a multiple choice question, the release of the mouse click is seen by doenet as selecting the answer choice, not clicking inside the box. An untenable workaround that @Kris_Hollingsworth found was to type the answer elsewhere, copy it, click inside the box while holding mouse 1 down, paste the copied answer into the box and then release the mouse button.

It would be nice if one could type in answers in the math input box without doing all that.

Created an issue about this behavior.

I was able to get it to work by typing in the box, then rechecking the selection. But it is still annoying. By the way, I was marked incorrect for typing (x-1)(x+1)

That’s due to the symbolic equality in the answer component. I was trying to get just one answer working first.

The bug experienced with clicking into a math input in a choice should be fixed in the latest dev version of DoenetML.