Hamid Mushtaq created ZEPPELIN-3866:
---------------------------------------
Summary: z.input working goes awry if z.select is used in the code
Key: ZEPPELIN-3866
URL: https://issues.apache.org/jira/browse/ZEPPELIN-3866
Project: Zeppelin
Issue Type: Bug
Components: GUI
Affects Versions: 0.8.0
Environment: Spark. Here I give the sample code, which has the problem
I described.
{code:java}
val selected = z.select("Select one of these", Seq(("item1", "The first
item"),("item2", "The second item")))
val pricewish = z.input("How much you are willing to pay for this item: ")
print("%html <h3>You selected " + selected + " and you wish to pay $ " +
pricewish + " for it.</h3>"){code}
Reporter: Hamid Mushtaq
Fix For: 0.8.1
The normal behavior of *z.input* when used with Spark is that when the user
presses Enter in a textbox, only then the Zeppelin triggers execution. However,
if you use *z.select* also somewhere in the same note, the behavior of
*z.input* changes as Zeppelin starts triggering exeuction on each key press
inside the texbox. I don't know if its a feature or a bug, but this is not what
the user normally wants. The execution should always trigger on pressing Enter.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)