-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Input: remove need for icon to support 'loading' prop #1716
Comments
I'm not sure that it's really need to be implimented, here is description of a loading example:
Here is example html output of your workaround: <Input loading icon=' ' placeholder='Search...' /> <div class="ui loading icon input">
<input type="text" placeholder="Search..." />
<i aria-hidden="true" class=" icon"></i>
</div> It renders an empty |
I agree with what you are saying now I read the documentation more thoroughly. The question is why whoever originally decided Loading only needed to apply to icons. I'll look at alternatives. |
Per the loading docs, an icon is required in order to show the loading state:
This seems silly, I'd expect the ProposalIf no icon is specified but <Input loading placeholder='Search...' /> <div class="ui loading icon input">
<input type="text" placeholder="Search..." />
<i aria-hidden="true" class="spinner icon"></i>
</div> |
Great. I was going to work on a PR but since I've committed to MVP critical path things for a launch didn't need the distraction and had a work-around. Plus I would have to spend time understanding the src structure, you fancy coders confuse me :) In the calendar to do next week. |
Allow 'loading' prop to work on Input without the need for an 'icon' to be specified.
I'm currently using icon=" " which throws a validation error, still works though.
The text was updated successfully, but these errors were encountered: