Commit 24cf365
Fix textarea question type detection in survey parsing
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>1 parent a32d167 commit 24cf365
1 file changed
+34
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1329 | 1329 | | |
1330 | 1330 | | |
1331 | 1331 | | |
1332 | | - | |
1333 | | - | |
1334 | | - | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
1335 | 1351 | | |
1336 | 1352 | | |
1337 | 1353 | | |
| |||
1524 | 1540 | | |
1525 | 1541 | | |
1526 | 1542 | | |
| 1543 | + | |
1527 | 1544 | | |
1528 | 1545 | | |
1529 | 1546 | | |
| |||
1541 | 1558 | | |
1542 | 1559 | | |
1543 | 1560 | | |
1544 | | - | |
1545 | | - | |
1546 | | - | |
1547 | | - | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
1548 | 1569 | | |
1549 | | - | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
1550 | 1576 | | |
1551 | 1577 | | |
1552 | 1578 | | |
| |||
0 commit comments