-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
What happened?
When List divided into Section's then phx-delete sends the index relative to the current Section that the item is in.
For example if i have this:
<List phx-delete="on_delete">
<Section>
<Text template={:header}>Section 1</Text>
<Text template={:content}>Item 1-1</Text>
<Text template={:content}>Item 1-2</Text>
</Section>
<Section>
<Text template={:header}>Section 2</Text>
<Text template={:content}>Item 2-1</Text>
<Text template={:content}>Item 2-2</Text>
</Section>
</List>
When i delete Item 2-2 then it sends %{"index" => 1} to event. It is not enough context for the server to know what to delete.
It would be nice if the id of the item is passed or allow some custom even handling with onDelete modifier
Library Version
Xcode Version
16
Swift Version
6.0
On which device or simulator are you running into the problem?
iPhone
Target Device Operating System Version
IOS 18
Relevant log output
No response