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

TextField Not Rendering the field #455

Closed
justbane opened this issue Oct 31, 2021 · 3 comments
Closed

TextField Not Rendering the field #455

justbane opened this issue Oct 31, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@justbane
Copy link

justbane commented Oct 31, 2021

Describe the bug
TextField doesn't draw a field on the page. It only adds the placeholder text as text in a span

To Reproduce
Steps to reproduce the behavior:

  1. add a TextField to the body View

`struct ContentView: View {
@State var fullName: String = ""

var body: some View {
    VStack {
        Text("Swift WASM App")
            .font(.title)
        HStack {
            Text("Hello there, \(fullName)!")
        }
        .padding()
        
        TextField("Full Name", text: $fullName)
        Button(action: {
            fullName = "John Doe"
        }) {
            Text("Add name")
        }
        
    }
    .padding()
}

}`

Expected behavior
I would hope for a TextField to show in the page

Desktop (please complete the following information):

  • OS: macOS Big Sur
  • Safari 15
  • Version of the browser [15]
  • Version of Tokamak [e.g. 0.8.0]

Additional context
Is there any additional documentation?

@justbane justbane added the bug Something isn't working label Oct 31, 2021
@carson-katri
Copy link
Member

Would you be able to try this on the main branch, I think it may be resolved.

@justbane
Copy link
Author

Yup - verified works in main branch.

Any timing on the next release? I don't mind working on master but would rather not be on the bleeding edge :)

@MaxDesiatov
Copy link
Collaborator

MaxDesiatov commented Oct 31, 2021

We're preparing SwiftWasm 5.5 for release and I'd like to tag new release of Tokamak shortly after that with a few basic async helpers. I don't have a very specific timeline for this, but if all goes well it should be weeks from now rather than months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants