nextcloud / forms

📝 Simple form & survey app for Nextcloud
https://apps.nextcloud.com/apps/forms
GNU Affero General Public License v3.0
316 stars 97 forks source link

"Other" option doesn't work with radio buttons #2307

Closed ischiros closed 1 week ago

ischiros commented 3 weeks ago

Please use the 👍 reaction to show that you are affected by the same issue. Please don't comment if you have no relevant information to add!

Describe the bug

If I add a radio button question to my form and check the option "Allow "other"", the "other" option is hardly usable. If a user checks the "other" option, it is not selected. The only possibility to select it is to click in the text field and start typing text. Until one starts typing, the option is not selected. It is very much counter-intuitive.

To Reproduce

  1. Create a form.
  2. Add a "Radio button" question.
  3. Activate the "Allow "other"" option in the question.
  4. Fill the form, try to select the "other" option -> impossible

Expected behavior

On step 4, a click on the "other" option should select it.

Nextcloud :

Desktop :

Other people had the same problem with Linux & Windows

Browser log

TypeError: e.startsWith is not a function
Chartman123 commented 3 weeks ago

I can confirm it... Strange that nobody noticed it until now...

Chartman123 commented 3 weeks ago

@susnux it seems to come from here https://github.com/nextcloud/forms/blob/75192da27e4b0b39b8f19851d6e17a6a9cd8f319/src/components/Questions/QuestionMultiple.vue#L316 and is still present in current main