iOS/macOS safari/chrome password manager can't insert/suggest password #4055
Replies: 5 comments 5 replies
-
Instead of just nickname I suggest you try username too: The infos got correctly filled on my mac/Chrome: I however noticed that, when using the material textfield (remove |
Beta Was this translation helpful? Give feedback.
-
I have run one more test 0. Code sampleJust took this code somewhere in the internet import flet as ft
from flet import TextField, Checkbox, ElevatedButton, Row, Column, Text
from flet_core.control_event import ControlEvent
def main(page: ft.Page) -> None:
page.title = "Login"
page.vertical_alignment = ft.MainAxisAlignment.CENTER
page.theme_mode = ft.ThemeMode.DARK
page.window_width = 400
page.window_height = 400
page.window_resizable = False
username_text: TextField = TextField(
label="Username", text_align=ft.TextAlign.LEFT, width=200, autofill_hints=[
ft.AutofillHint.NICKNAME,
ft.AutofillHint.USERNAME
],
)
password_text: TextField = TextField(
label="Password", text_align=ft.TextAlign.LEFT, width=200, password=True, autofill_hints=ft.AutofillHint.PASSWORD,
)
checkbox_signup: Checkbox = Checkbox(
label="I agree to the Terms and Conditions", value=False
)
submit_button: ElevatedButton = ElevatedButton(
text="Login", disabled=True, width=200
)
def validate(param: ControlEvent) -> None:
if all([username_text.value, password_text.value, checkbox_signup.value]):
submit_button.disabled = False
else:
submit_button.disabled = True
page.update()
def submit(param: ControlEvent) -> None:
print("Username: ", username_text.value)
print("Password: ", password_text.value)
page.clean()
page.add(
Row(
controls=[
Text(
value=f"Welcome {username_text.value}", size=20, disabled=False
)
],
alignment=ft.MainAxisAlignment.CENTER
)
)
username_text.on_change = validate
password_text.on_change = validate
checkbox_signup.on_change = validate
submit_button.on_click = submit
page.add(
Row(
controls=[
Column(
[
username_text,
password_text,
checkbox_signup,
submit_button,
]
)
],
alignment=ft.MainAxisAlignment.CENTER
)
)
ft.app(main, port=8014, view=ft.AppView.WEB_BROWSER) Test caseMacbook Pro M1, Sonoma 14.6.1, Chrome Version 128.0.6613.138 (Official Build) (arm64) Chrome was relaunched before recording this video. |
Beta Was this translation helpful? Give feedback.
-
I am coming up with a fix. Will let you know when you can test it through a pre-release. |
Beta Was this translation helpful? Give feedback.
-
Sub to this issue for updates: #4102 |
Beta Was this translation helpful? Give feedback.
-
Yo, great! Thanks so much for your work. I really appreciate it. Just to clarify, after the pre-release, should we be using the adaptive property in this situation? |
Beta Was this translation helpful? Give feedback.
-
Question
Hi!
I'm creating a simple login page, and everything works fine on Android and Windows platforms. If the user has saved their login and password in a browser's password manager, the credentials are correctly suggested and autofilled into the text fields.
However, when attempting the same on iOS or macOS using Safari or Chrome, the password is not autofilled into the text field, even after being saved in the password manager.
Steps to reproduce:
Code sample
What I’ve Tried
I used autofill hints (there is a discussion with a similar problem) and adaptive property, it doesn't work
Beta Was this translation helpful? Give feedback.
All reactions