-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Component] Search #34
Conversation
9a6bdd8
to
9a4f750
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your work ! Here is a small review of what I think could be improved.
Don't forget to rebase for resolve conflicts.
394a807
to
c6d0c8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really thank you for your work ! I have just a little one proposition for improving your component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for all your work, I think we can merge it !
Just don't forget to rebase.
@aAmorim27 possible de complΓ©ter ma review pour Γͺtre sur de ne rien avoir oubliΓ© avant de merge ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm having an Uncaught RangeError: Maximum call stack size exceeded
when i delete the text in search after pressing the submit button
Otherwise there is small improvements to do and it's seems that the confirm button is missing from html/css snippets of the documentation
setup() { | ||
return { args } | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setup() { | |
return { args } | |
}, | |
setup() { | |
const myValue = ref('') | |
return { args, myValue } | |
}, |
Add a v-model on this story or otherwise we won't be able to use the search because the value will dispear when unfocusing the element
7a64d17
to
e0abc39
Compare
@aAmorim27 need other review ? |
yes I think is cool if you can review it |
e0abc39
to
2983d79
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok for me π , just some quick fixes to do on the storybook docs
}, | ||
autocomplete: { | ||
description: 'Set the autocomplete mode of the input', | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rounded
prop is missing in the controls list
<!--VueJS Snippet--> | ||
<puik-search v-model="myValue" rounded :autocomplete="'test'"/> | ||
|
||
<!--HTML/CSS Snippet--> | ||
<div class="puik-search"> | ||
<div class="puik-search__wrapper puik-search__wrapper--rounded-input"> | ||
<input class="puik-search__field" type="text" rounded :autocomplete="'test'"/> | ||
</div> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<!--VueJS Snippet--> | |
<puik-search v-model="myValue" rounded :autocomplete="'test'"/> | |
<!--HTML/CSS Snippet--> | |
<div class="puik-search"> | |
<div class="puik-search__wrapper puik-search__wrapper--rounded-input"> | |
<input class="puik-search__field" type="text" rounded :autocomplete="'test'"/> | |
</div> | |
</div> | |
<!--VueJS Snippet--> | |
<puik-search v-model="myValue" rounded autocomplete="search"/> | |
<!--HTML/CSS Snippet--> | |
<div class="puik-search"> | |
<div class="puik-search__wrapper puik-search__wrapper--rounded-input"> | |
<span class="puik-search__icon puik-h2">search</span> | |
<input class="puik-search__field" type="text" autocomplete="search" /> | |
</div> | |
</div> |
The icon is missing & use search as autocomplete value,
Co-authored-by: AndrΓ© Amorim <[email protected]>
Co-authored-by: AndrΓ© Amorim <[email protected]>
Co-authored-by: AndrΓ© Amorim <[email protected]>
Co-authored-by: AndrΓ© Amorim <[email protected]>
Co-authored-by: AndrΓ© Amorim <[email protected]>
Co-authored-by: AndrΓ© Amorim <[email protected]>
Co-authored-by: AndrΓ© Amorim <[email protected]>
Co-authored-by: AndrΓ© Amorim <[email protected]>
e82b97f
to
ba07960
Compare
just a thought but what about a generic way for this ? |
We have some searchbox already in our code that's why I'm pretty interested by this component ;) |
outdated (based on v1) |
β Types of changes
π Description
Closes #23
π Checklist