Add special case directionality of phone input

This commit is contained in:
Dmitry Kolupaev 2020-02-18 18:23:40 +03:00
parent 35d340daba
commit 6188116090
2 changed files with 6 additions and 1 deletions

View file

@ -330,7 +330,6 @@ impl HTMLInputElement {
pub fn auto_directionality(&self) -> Option<String> {
match self.input_type() {
InputType::Tel => return Some("ltr".to_owned()),
InputType::Text | InputType::Search | InputType::Url | InputType::Email => {
let value: String = self.Value().to_string();
Some(HTMLInputElement::directionality_from_value(&value))