3 Commits

Author SHA1 Message Date
Taber
d4bc6f8562 Fix delete functionality for vendor notes dynamic rows
- Changed row ID prefix from 'row_' to '_' for valid CSS selectors
- Added _id property assignment in row data for proper rendering
- Resolves querySelectorAll SyntaxError when deleting rows

The issue was that numeric row IDs (0, 1, 2) created invalid CSS
selectors like 'tr#0 button.action-delete'. CSS IDs cannot start
with numbers. By prefixing with underscore, we get valid selectors
like 'tr#_0 button.action-delete'.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 12:58:58 -05:00
shopkeeperdev
677b43db02 Rename package to shopkeeper/module-vendor-notes and fix delete button issue
- Update package name from shopkeeper/vendornotes to shopkeeper/module-vendor-notes to follow naming conventions
- Fix invalid CSS selector issue by prefixing numeric row IDs with 'row_' in getArrayRows()
- Resolves JavaScript error: "Failed to execute 'querySelectorAll' on 'Document': 'tr#0 button.action-delete' is not a valid selector"

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-06 14:23:40 -05:00
shopkeeperdev
fcc8697c75 Added ability to add/edit note fields in Magento Admin. 2025-10-07 18:57:28 -04:00