question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to put a form element (say Input) inside ArcherElement?

See original GitHub issue

Firstly, thanks a lot for such a useful library! This is of really great help 😃

Coming to my requirement, I was building a flowchart/concept-map kind of thing and need some of the nodes to be editable. I tried to put <input> inside <ArcherElement>, but it didn’t work because of the SVG overlay. I tried putting <input> inside <foreignObject>, but it didn’t help either.

Is there any way to put form elements/content editable DIVs inside ArcherElements?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pierpocommented, May 10, 2020

Cool, glad to hear it 😊 The PR https://github.com/pierpo/react-archer/pull/85 should help in making this clearer (needs some rework to not change the defaults though).

0reactions
rishitellscommented, May 10, 2020

Hey, thanks a lot man! This solution worked perfectly for my use case! 😊

Read more comments on GitHub >

github_iconTop Results From Across the Web

<input>: The Input (Form Input) element - HTML
The <input> HTML element is used to create interactive controls for web-based forms in order to accept data from the user; a wide...
Read more >
Is it good practice to use the form attribute and put input ...
It is not common practice. In most cases, it offers no benefits but has a drawback: some old browsers do not support the...
Read more >
The form element in depth - web.dev
First, add an <input> element with type="file" to your form. Add the multiple attribute if users should be able to upload multiple files....
Read more >
HTML Form - Input element basics - YouTube
In this video tutorial, you will learn about input form element. The video covers the basics of the input element.
Read more >
Full React Tutorial #27 - Controlled Inputs (forms) - YouTube
Hey gang, in this React tutorial we'll see how to use input fields & track what a user types into them, using controlled...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found