Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for LVN Core API changes #22

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions swiftui/Sources/LiveViewNativeLiveForm/LiveForm.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ struct LiveForm<Root: RootRegistry>: View {
/// Collects all ``LiveHiddenField`` elements, and sets their values into the form model.
private func updateHiddenFields() {
for child in $liveElement.element.depthFirstChildren() {
guard case let .element(element) = child.data,
element.tag == "LiveHiddenField",
guard case let .nodeElement(element) = child.data(),
element.name.name == "LiveHiddenField",
let name = element.attributes.first(where: { $0.name == "name" })?.value,
let value = element.attributes.first(where: { $0.name == "value" })?.value
else { continue }
Expand Down