Skip to content

Conversation

@dylanpieper
Copy link
Contributor

Problem: Textarea questions were being parsed as "unknown" type instead of "textarea", preventing proper restoration when navigating between pages.

Root cause: HTML extraction was only getting "form-control" class instead of the full "shiny-input-textarea form-control" class string for textarea elements.

Solution:

  • Enhanced HTML extraction to check both class attribute and tag name
  • Added fallback logic for textarea elements with incomplete class strings
  • Replaced exact string matching with pattern matching for question types

This ensures textarea questions are properly detected and restored during navigation, fixing cookie-based session management for text input fields.

@dylanpieper dylanpieper changed the title Bug fix: Textarea question type detection in survey parsing Fix bug: Textarea question type detection in survey parsing Nov 26, 2025
Problem: Textarea questions were being parsed as "unknown" type instead of
"textarea", preventing proper restoration when navigating between pages.

Root cause: HTML extraction was only getting "form-control" class instead of
the full "shiny-input-textarea form-control" class string for textarea elements.

Solution:
- Enhanced HTML extraction to check both class attribute and tag name
- Added fallback logic for textarea elements with incomplete class strings
- Replaced exact string matching with pattern matching for question types

This ensures textarea questions are properly detected and restored during
navigation, fixing cookie-based session management for text input fields.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@jhelvy
Copy link
Collaborator

jhelvy commented Nov 27, 2025

Thanks again for catching all these issues!
I just merged one PR and fixed another more pressing bug and bumped to v1.0.1 (v1.0.0 was very short lived!).
I'll merge these next chance I get. Happy Thanksgiving!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants