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.

Ability to set the textarea id attribute

See original GitHub issue

It would be nice to be able to set the id of the generated textarea, like we can for the name and others. I need this to be able to get a <label for='myid'>...</label> element to auto focus onto the textarea when clicked.

Great little code editor BTW. It’s very useful to have a lightweight option for React.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
satya164commented, Nov 2, 2018

@davidjamesstone Okies! I sent a PR adding a prop for that. Lemme know if it works for you.

0reactions
satya164commented, Nov 7, 2018

Actually this prop isn’t released. I just added placeholder prop. Will support id with render props later.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML textarea id Attribute - Dofactory
The id attribute assigns an identifier to the <textarea> element. The id allows JavaScript to easily access the <textarea> element. It is also...
Read more >
The Textarea element - HTML: HyperText Markup Language
An id attribute to allow the <textarea> to be associated with a <label> element for accessibility purposes; A name attribute to set the...
Read more >
Ability to set the textarea id attribute · Issue #9 - GitHub
The textarea element has it built-in but I can't seen to be able to set it though simple code editor.
Read more >
On the textarea element, add an id attribute and set the value ...
On the textarea element, add an id attribute and set the value to "comment". <!DOCTYPE html> <html> <head> <meta charset="utf-8"> ...
Read more >
How to change the Content of a textarea using JavaScript
Method 2: This method uses the id attribute of the textarea with innerHTML property to change the content of <textarea> element. JavaScript code ......
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