mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Make the password input element show the correct number of dots for multibyte chars.
This commit is contained in:
parent
0316100785
commit
1ecbe021ff
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ impl LayoutHTMLInputElementHelpers for JS<HTMLInputElement> {
|
||||||
.unwrap_or_else(|| "".to_string()),
|
.unwrap_or_else(|| "".to_string()),
|
||||||
InputPassword => {
|
InputPassword => {
|
||||||
let raw = get_raw_textinput_value(self);
|
let raw = get_raw_textinput_value(self);
|
||||||
String::from_char(raw.len(), '●')
|
String::from_char(raw.char_len(), '●')
|
||||||
}
|
}
|
||||||
_ => get_raw_textinput_value(self),
|
_ => get_raw_textinput_value(self),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue