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.

Selection doesn't set properly on newly created <select> element

See original GitHub issue

in createElement, setData goes first, then run appendChild.

This prevents <select> from setting value, in the time of setData there are no child <option>s, so no selection was made.

Any problems for reversing the order of setData and appendChild ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
acstllcommented, Sep 22, 2017

@JorgeBucaran wouldn’t it be a good idea to try and create a failing test before merging the fix? that would document the change better and avoid regressions in the future…

0reactions
jorgebucarancommented, Sep 22, 2017

@acstll That sounds smart. I left @t-kinoshita a comment on the PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing it with jQuery select doesn't show selected option
Click on button should show that form and set some values in the fields. The input fields are filled with given values but...
Read more >
Cannot select multiple objects in AutoCAD
On the Cursor & Selection tab, clear the Use Shift key to add to selection option. User-added image; Choose OK to close the...
Read more >
Select data for a chart - Microsoft Support
Learn best ways to select a range of data to create a chart, and how that data needs to be arranged for specific...
Read more >
Excel Data Validation Tips and Troubleshooting - Contextures
This page has data validation tips, and shows how to fix Excel data validation problems, such as drop down not working, blank selected, ......
Read more >
<input type="radio"> - HTML: HyperText Markup Language
Once a radio group is established, selecting any radio button in that ... good reason to properly set up <label> elements on your...
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