Repository navigation
Allow clearing multiple inputs - #108
Conversation
Some inputs, such as date, datetime, range, and week were not cleanable since they only accept setting valid values. This makes them either accept valid values or and empty string.
|
Thank you, @rbri. Any idea about when this will be part of a release? |
|
Thank |
|
Thank you for the patch. |
|
Hey @rbri, As I said in the description, the intent was to fix a problem I found when using Selenium's htmlunit-driver, so I would like to update the dependency and also have a release there. My end goal is to finish scalatest/scalatestplus-selenium#7 and then fix playframework/scalatestplus-play#214 (sorry for all those jumps). Therefore, yes, having a release would help to move the downstream projects forward. But I'm not in a hurry here and this year sounds good to me. ;-) Thanks! |
|
Hey @rbri, Happy New Year! 🎉 Any idea of when a new version will be released? |
|
@rbri @marcospereira +1 For the new release to include this fix! |
Some inputs, such as date, datetime, range, and week were not cleanable since they only accept setting valid values. This makes them either accept valid values or and empty string. Other fields such as email or URL were already accepting empty String when setting the value attribute.
I noticed this while working with Selenium's htmlunit-driver. There is a
clearmethod there which callssetValueAttributewith and empty String:https://github.com/SeleniumHQ/htmlunit-driver/blob/dcab0f9e0ffc3a15625dfa8866997b42eb6b2e0c/src/main/java/org/openqa/selenium/htmlunit/HtmlUnitWebElement.java#L233
But since a bunch of them don't accept it as a valid value, them it makes impossible to clear the field without resorting to workarounds.