-
Notifications
You must be signed in to change notification settings - Fork 53
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
fix(select): Always wrap select
with .input-field
#417
Conversation
This will make labelling and validation consistent
This is inline with the changes to `select`
It will have to go to another unrelated patch
Please consider #416 as an alternative |
Sorry it took so long this time. I'm leaning to this one. |
I like this one more too. Which got me thinking - shouldn't it be an
element, not a attribute?
…On 9 May 2017 3:43 am, "Daniel Bendel" ***@***.***> wrote:
Sorry it took so long this time.
I think #416
<#416>
is easier to read while this one here seems more straightforward because it
always adds a wrapper. So you can expect there is a wrapper and propertly
remove it.
I'm leaning to this one.
Di you have any preference?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#417 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADimvCCk9kSJo7orodqlxNo23YXO7Iu3ks5r31QtgaJpZM4NO3iw>
.
|
Sure, we should think about that. I'm not sure how to do it, though.. I'm not sure about it because of timing. It would break a few things, I guess. |
Seems like the element would be almost the same as an attribute. Even simpler if anything, because you would move html to a template. "Obsolete" would work just fine I recon |
ah, one issue though... the following would not be a valid html, would it? <md-select>
<option>option</option>
</md-select> |
No, it wouldn't be valid html. <template>
<select ...>
<slot></slot>
</select>
</template> That would lead to valid HTML. I don't know how this will restrict things if we wanted to add other elements (like custom validation). Then this would have to be a named slot. But until then, I guess it should work. 😃 What we'll have to keep in mind is that all of this will eventually be removed and overwritten by Materialize when it initializes the select proxy. |
The template wouldn't be an issue. The usage of this element will, at least
VS editor complains about it.
On 9 May 2017 9:12 pm, "Daniel Bendel" <notifications@github.com> wrote:
No, it wouldn't be valid html.
Maybe if you use something like this as the element's template:
<template>
<select ...>
<slot></slot>
</select>
</template>
That would lead to valid HTML. I don't know how this will restrict things
if we wanted to add other elements (like custom validation). Then this
would have to be a named slot. But until then, I guess it should work. 😃
What we'll have to keep in mind is that all of this will eventually be
removed and overwritten by Materialize when it initializes the select proxy.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#417 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADimvCI5z0rsbbmeRSbGVJPyhcoqXaz7ks5r4Eo2gaJpZM4NO3iw>
.
|
Really, it complains about |
That's a good idea :)
…On 9 May 2017 at 22:05, Daniel Bendel ***@***.***> wrote:
Really, it complains about option in an unknown tag?
Hmm, what about md-option then? We'd have even omre control in that case.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#417 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADimvDDWRzGn-e9NFuC1ugnH53TdTYNIks5r4FZugaJpZM4NO3iw>
.
|
This will make labelling and validation consistent.
Validator is also modified to reflect the changes to
select
.