<p dir="auto">Hi, I am facing a problem when I want to read the value of an input that have suggestions from datalist, the value that I get from the input is only what I type with the keyboard not the selected value, i’ll give an example to explain better, for the HTML bellow, if I type ‘on’ than I select the suggestion which is ‘111’ when I try to read the value of the input (document.getElementById(“num”).value) I get ‘on’ instead of ‘111’, any suggestions to fix it??<br>
<code class="notranslate">&lt;input type="text" list="numbrs" id="num"&gt; &lt;datalist id="numbrs"&gt; &lt;option value="111"&gt;One&lt;/option&gt; &lt;option value="222"&gt;two&lt;/option&gt; &lt;/datalist&gt;</code></p>
<ul dir="auto">
<li>Electron version: 1.6.2</li>
<li>Operating system: Windows 10 64Bit</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Finish the process and that all files are installed</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">The Python Script crashes and throws lots of Errors</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">I have Visual Studio 2017 installed!!! (I can't get 2015 anywhere)<br>
I use Python 2.7!!!<br>
I tried it with multiple consoles! (Hyper, Git Bash, Bash, Admin Bash, PowerShell)</p>
<p dir="auto">$ cd electron<br>
$ python script/bootstrap.py</p>
<h3 dir="auto">Console Output</h3>
<p dir="auto">git submodule status vendor/libchromiumcontent<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/a3cff052273b659702c6a8728e28a3b45659cd76/hovercard" href="https://github.com/electron/electron/commit/a3cff052273b659702c6a8728e28a3b45659cd76"><tt>a3cff05</tt></a> vendor/libchromiumcontent (v51.0.2704.61-323-ga3cff05)</p>
<p dir="auto">C:\Python27\python.exe C:\Users\user\Documents\electron\script\update.py<br>
Das System kann den angegebenen Pfad nicht finden.<br>
Traceback (most recent call last):<br>
File "vendor\gyp\gyp_main.py", line 16, in <br>
sys.exit(gyp.script_main())<br>
File "vendor\gyp\pylib\gyp_<em>init</em>_.py", line 545, in script_main<br>
return main(sys.argv[1:])<br>
File "vendor\gyp\pylib\gyp_<em>init</em>_.py", line 538, in main<br>
return gyp_main(args)<br>
File "vendor\gyp\pylib\gyp_<em>init</em>_.py", line 514, in gyp_main<br>
options.duplicate_basename_check)<br>
File "vendor\gyp\pylib\gyp_<em>init</em>_.py", line 98, in Load<br>
generator.CalculateVariables(default_variables, params)<br>
File "vendor\gyp\pylib\gyp\generator\ninja.py", line 1685, in CalculateVariables<br>
gyp.msvs_emulation.CalculateCommonVariables(default_variables, params)<br>
File "vendor\gyp\pylib\gyp\msvs_emulation.py", line 1083, in CalculateCommonVariables<br>
msvs_version = gyp.msvs_emulation.GetVSVersion(generator_flags)<br>
File "vendor\gyp\pylib\gyp\msvs_emulation.py", line 934, in GetVSVersion<br>
allow_fallback=False)<br>
File "vendor\gyp\pylib\gyp\MSVSVersion.py", line 447, in SelectVisualStudioVersion<br>
raise ValueError('Could not locate Visual Studio installation.')<br>
ValueError: Could not locate Visual Studio installation.<br>
None<br>
Traceback (most recent call last):<br>
File "script\bootstrap.py", line 299, in <br>
sys.exit(main())<br>
File "script\bootstrap.py", line 67, in main<br>
run_update(defines, args.msvs)<br>
File "script\bootstrap.py", line 270, in run_update<br>
execute_stdout(args)<br>
File "C:\Users\user\Documents\electron\script\lib\util.py", line 181, in execute_stdout<br>
raise e<br>
subprocess.CalledProcessError: Command '['C:\Python27\python.exe', 'C:\Users\user\Documents\electron\script\update.py']' returned non-zero exit status 1</p>