Various fixes

This commit is contained in:
Ilya Laktyushin
2024-08-02 01:44:08 +02:00
parent 90bba2d84a
commit f62efe1ed6
7 changed files with 32 additions and 16 deletions

View File

@@ -441,7 +441,7 @@ final class AddressBarContentComponent: Component {
textField.addTarget(self, action: #selector(self.textFieldChanged(_:)), for: .editingChanged)
}
let address = getDisplayUrl(self.component?.url ?? "")
let address = getDisplayUrl(self.component?.url ?? "", trim: false)
if textField.text != address {
textField.text = address
self.clearIconView.isHidden = address.isEmpty