projectcs13 / sensor-cloud-website

A stream search engine for the Internet of Things (front-end)
4 stars 12 forks source link

The "next" button is not available in the new stream page #290

Closed gxlzlihao closed 10 years ago

gxlzlihao commented 10 years ago

When go to the new stream page, focus on the name of the stream without entering anything from the keyboard, and choose a name from the auto scroll down menu. The next button is not available. I could not click on the next button unless I type something into the stream`s name from my keyboard, even though those fields have been filled.

volt42 commented 10 years ago

I am unable to reproduce this. The button is always there for me, but is gray and not clickable until something is enterd in the name field (which is intentionally required).

gxlzlihao commented 10 years ago

Yes, unless you type something from the keyboard into the stream name field, you can not click the next button. Even though you have chosen a name from the auto scroll down list. This looks not quite convenient.

volt42 commented 10 years ago

Ah, now i see it. It only happens when you interact only with the mouse.

albertoblaz commented 10 years ago

Fixed in https://github.com/projectcs13/sensor-cloud-website/pull/304

The solution taken consists on handling the 'input' event, which could not be very compatible with legacy browsers, but it definitely works on the modern ones and is the most elegant solution