Details
-
Bug
-
Status: Open
-
Blocker
-
Resolution: Unresolved
-
0.8.0
-
Spark. Here I give the sample code, which has the problem I described.
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>")
Spark. Here I give the sample code, which has the problem I described. 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>" )
-
Important
Description
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.