Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable autofill on login form #451

Merged
merged 3 commits into from
Jun 7, 2023
Merged

Enable autofill on login form #451

merged 3 commits into from
Jun 7, 2023

Conversation

pipe01
Copy link
Contributor

@pipe01 pipe01 commented Jun 7, 2023

Fixes #439

@pipe01 pipe01 requested a review from dessalines as a code owner June 7, 2023 19:17
@pipe01
Copy link
Contributor Author

pipe01 commented Jun 7, 2023

Should be good now

@@ -814,3 +822,28 @@ fun getDepthFromComment(comment: Comment?): Int? {
fun nsfwCheck(postView: PostView): Boolean {
return postView.post.nsfw || postView.community.nsfw
}

@OptIn(ExperimentalComposeUiApi::class)
fun Modifier.onAutofill(vararg autofillType: AutofillType, onFill: (String) -> Unit): Modifier = composed {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really sure where this code is coming from, and I wish jetpack-compose had this built into fields already. But as long as it works.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dessalines dessalines merged commit fa32d22 into LemmyNet:main Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Login form is not treated as a login form by autofill services
2 participants