mirror of
https://github.com/penpot/penpot.git
synced 2026-06-16 20:32:04 +00:00
The multi-input component did not handle paste events for comma-separated values. When users pasted emails like 'qa@example.com, test@example.com', the entire string was inserted as-is, triggering validation errors. The on-key-down handler already split text on commas/spaces when typing, but paste events bypassed this logic. Added an on-paste handler that: - Detects if pasted text contains commas or whitespace - Splits the text by commas and/or whitespace - Validates each part individually - Adds valid items to the items list - Prevents default paste behavior - Resets input state after processing Signed-off-by: Andrey Antukh <niwi@niwi.nz>