InteractBase.jl icon indicating copy to clipboard operation
InteractBase.jl copied to clipboard

autocomplete doesn't work with Blink

Open vdayanand opened this issue 7 years ago • 9 comments

vdayanand avatar Jun 19 '18 06:06 vdayanand

I think it may be due on older version of Electron not supported the datalist tag, should be fixed on Blink master. Could you try Pkg.checkout("Blink") and report here whether that fixes the issue you're experiencing?

I can ask over at Blink if it's possible to have a release.

piever avatar Jun 19 '18 09:06 piever

No, it doesnt work with Blink.jl master either

vdayanand avatar Jun 19 '18 10:06 vdayanand

Interesting. Are you calling Blink from the REPL or from Atom? Somehow, the two things call different Electron installation.

What problem are you experiencing exactly? Do options not display or is the observe(widget) incorrect?

piever avatar Jun 19 '18 10:06 piever

I am using Blink from REPL. None of values passed to autocomplete is getting displayed in the UI. it works when I don't use Blink i.e from notebook.

vdayanand avatar Jun 19 '18 10:06 vdayanand

Upon inspect element in Blink, I do see all the values inside datalist tag

vdayanand avatar Jun 19 '18 10:06 vdayanand

Could you copy paste your inspect element here? Just to make sure I'm not doing something unorthodox that Blink doesn't accept.

piever avatar Jun 19 '18 10:06 piever

<div><input list="##672" id="envname" type="text" placeholder="" class="interactbulma input "><datalist id="##672"><option value="Test"></option><option value="Production"></option><option value="Development"></option><option value="Staging"></option></datalist></div>

vdayanand avatar Jun 19 '18 10:06 vdayanand

That HTML works on Blink on my machine. If I do:

using Blink
w = Window()
html = """
<div><input list="##672" id="envname" type="text" placeholder="" class="interactbulma input "><datalist id="##672"><option value="Test"></option><option value="Production"></option><option value="Development"></option><option value="Staging"></option></datalist></div>
"""
body!(w,html)

I get the options to show up correctly. If that doesn't work on your machine it's probably a Blink issue, so maybe it could be reported there.

piever avatar Jun 23 '18 10:06 piever

Electron 4.0.4 doesn't support data-list on MacOSX

jakkos-net avatar Mar 04 '22 08:03 jakkos-net