enable autocomplete to accept dropdown options#60
enable autocomplete to accept dropdown options#60DanielRuf merged 1 commit intomaterializecss:v1-devfrom nicknickel:autocomplete-dropdown-opts
Conversation
Smankusors
left a comment
There was a problem hiding this comment.
Looks fine from me. 👍
On the other side, I just found on the "select" documentation, there's additional documentation on Properties section. But... The name and description IMO doesn't make sense... More like... it tries to use existing variable but for different purpose? 😕
materialize/jade/page-contents/select_content.html
Lines 284 to 288 in 88fa44a
|
@Smankusors - I didn't notice that it. I used the select component as a reference when making this change and did notice that "dropdownOptions" is used for different purposes and is only differentiated by location / scope. Below is where the options that are passed to the dropdown component are used. The dropdownOptions in the documentation you linked are a property of the select component itself, not it's options, if that makes sense. Line 243 in 88fa44a In any case, it probably would be good to rename one of those "dropdownOptions" on the select component to clear up confusion. Maybe something for a new release since that would probably be a breaking change? |
👍 |
This confused me for a long time but actually, they named it perfectly - This would be a good feature add, along with allowing extra data to be passed to autocomplete - two use cases I come up against fairly frequently in the Gitter channel. |
that would be a documentation improvement, and IMO should be a separate PR for that.
hmm makes sense. aside from that, is this PR okay to merge? |
|
Not sure who you are asking but, from my perspective, this PR is ok to be merged. |
|
Thanks for the reviews, I'll merge it now. |
Proposed changes
document.body.Types of changes
Checklist: