-
Notifications
You must be signed in to change notification settings - Fork 73
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
TextInput support #37
Comments
I've observed that as well. If I press tab a few times, it will transition the cursor to the TextInput. |
Yeah TextInput was implemented solely to the point of it being “rendered” so it didn’t throw any errors and looked alright in RNTester. I think that it might be the first component I work on after I sort through all my administrative tasks that have been piling up since the announcement. |
Stepped through the debugger and noticed that the react-native-dom/packages/react-native-dom/Libraries/Components/TextInput/TextInput.dom.js Line 849 in 88fe69f
This may not be related: For a TextInput with react-native-dom/packages/react-native-dom/Libraries/Components/TextInput/TextInput.dom.js Line 567 in 88fe69f
|
Where are you on this? I can take a look at RCTInputAccessoryView, but not sure if you are doing admin tasks or TextInput ;) |
I’m currently working on admin tasks & the picker component. If anyone
wants to tackle the TextInput component it’s up for grabs!
…On Tue, Jun 5, 2018 at 3:19 PM thebetterjort ***@***.***> wrote:
Where are you on this? I can take a look at RCTInputAccessoryView, but not
sure if you are doing admin tasks or TextInput ;)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABVXG5x6UGPEdSKnIEfwIk8lyFq5Aljnks5t5tnGgaJpZM4UGTyl>
.
|
Ya I looked at this. I don’t have any idea how to handle. Any tips? |
TextInput doesn't display and is broken in RNTester at the moment |
It looks like TextInput works on regular Safari/Chrome – onChange gets fired and you can read the input value. However, on mobile Safari/Chrome it's not selectable – you can't tap the TextInput, no typing cursor/keyboard shows up. I'm going to dig into why myself, any tips @vincentriemer ? |
@raspasov Can you confirm it's broken in RNTester as it stands? |
@brandonros it seems to be broken in RNTester, yes. But it seems to work when I tried it in my own project in a regular browser (but not mobile). |
Ok, I'm doing some digging: @vincentriemer could the problem be coming from Shadow Dom? Specifically, the latest Safari/Chrome for iOS list the support of Shadow Dom as "partial" and mentions bugs related to using "slotted" styling which I see is used here:
Also located the issue in WebKit itself https://bugzilla.mozilla.org/show_bug.cgi?id=1205323 which seems to be actively worked on/fixed just a few days ago but I don't think the latest changes are in the current iOS 12.1. Do you think TextInput workable functionality can be achieved without Shadow Dom? Let me know and I can give it a shot if you believe this might be the correct direction. I'll keep this thread posted if I find something more. |
I can confirm that commenting out this line:
... makes the TextInput selectable – the keyboard shows up in Mobile Safari and I can type in the TextInput field. That's good news! :) I haven't fully tested all functionality but at least onChangeText seems to be firing and I can get the latest value of the TextInput. |
The
TextInput
component seems to be partially implemented. I can see that an input element is rendered but it's impossible to focus and edit it.(btw, congrats for the impressive work!)
The text was updated successfully, but these errors were encountered: