-
Notifications
You must be signed in to change notification settings - Fork 907
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
textfield does not work "multiple" when "type=email" #5064
Closed
itagakishintaro opened this issue
Oct 8, 2023
· 0 comments
· Fixed by #5005 · May be fixed by X-oss-byte/pigweed#61, X-oss-byte/pigweed#70 or X-oss-byte/pigweed#73
Closed
textfield does not work "multiple" when "type=email" #5064
itagakishintaro opened this issue
Oct 8, 2023
· 0 comments
· Fixed by #5005 · May be fixed by X-oss-byte/pigweed#61, X-oss-byte/pigweed#70 or X-oss-byte/pigweed#73
Comments
copybara-service bot
pushed a commit
that referenced
this issue
Oct 10, 2023
fixes #5064 PiperOrigin-RevId: 572172081
copybara-service bot
pushed a commit
that referenced
this issue
Oct 17, 2023
fixes #5064 PiperOrigin-RevId: 572172081
copybara-service bot
pushed a commit
that referenced
this issue
Oct 17, 2023
fixes #5064 PiperOrigin-RevId: 572172081
copybara-service bot
pushed a commit
that referenced
this issue
Oct 17, 2023
fixes #5064 PiperOrigin-RevId: 572172081
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is affected?
Component
Description
When I use text-field (md-outlined-text-field or md-filled-text-field) with
type="email" multiple="true"
,I expect
a list of zero email addresses (an empty string, or one which is entirely whitespace) is a valid value
.It is common in W3C standard html.
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email#multiple
However, textfield does not work.
Maybe, the cause is below. This code does not care about "multiple".
material-web/textfield/internal/text-field.ts
line 600
Reproduction
https://lit.dev/playground/#project=W3sibmFtZSI6Im1hdGVyaWFsLWltcG9ydHMuanMiLCJjb250ZW50IjoiaW1wb3J0ICdAbWF0ZXJpYWwvd2ViL3RleHRmaWVsZC9vdXRsaW5lZC10ZXh0LWZpZWxkLmpzJztcbiJ9LHsibmFtZSI6ImluZGV4Lmh0bWwiLCJjb250ZW50IjoiPCFET0NUWVBFIGh0bWw-XG48c2NyaXB0IHR5cGU9XCJtb2R1bGVcIiBzcmM9XCIuL21hdGVyaWFsLWltcG9ydHMuanNcIj48L3NjcmlwdD5cblxuPGZvcm0-XG4gIDxtZC1vdXRsaW5lZC10ZXh0LWZpZWxkXG4gICAgaWQ9XCJtZW1iZXJzXCJcbiAgICBsYWJlbD1cIm11bHRpcGxlIGVtYWlsXCJcbiAgICB0eXBlPVwiZW1haWxcIlxuICAgIG11bHRpcGxlPVwidHJ1ZVwiXG4gID48L21kLW91dGxpbmVkLXRleHQtZmllbGQ-XG4gIDxpbnB1dCB0eXBlPVwic3VibWl0XCI-XG48L2Zvcm0-In0seyJuYW1lIjoicGFja2FnZS5qc29uIiwiY29udGVudCI6IntcbiAgXCJkZXBlbmRlbmNpZXNcIjoge1xuICAgIFwibGl0XCI6IFwiXjIuMC4wXCIsXG4gICAgXCJAbGl0L3JlYWN0aXZlLWVsZW1lbnRcIjogXCJeMS4wLjBcIixcbiAgICBcImxpdC1lbGVtZW50XCI6IFwiXjMuMC4wXCIsXG4gICAgXCJsaXQtaHRtbFwiOiBcIl4yLjAuMFwiXG4gIH1cbn0iLCJoaWRkZW4iOnRydWV9XQ
Workaround
I do not know.
Is this a regression?
No or unsure. This never worked, or I haven't tried before.
Affected versions
@material/[email protected]
Browser/OS/Node environment
Browser: Chrome 117.0.5938.149
OS: MacOS 13.4.1 (c)(22F770820d)
Node version: v20.5.0
npm version: 10.1.0
The text was updated successfully, but these errors were encountered: