Skip to content
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

Mobile friendly version #8

Open
harrymendez23 opened this issue Sep 19, 2019 · 7 comments
Open

Mobile friendly version #8

harrymendez23 opened this issue Sep 19, 2019 · 7 comments
Labels
wontfix This will not be worked on

Comments

@harrymendez23
Copy link

Can anyone suggest how to update to make the component more mobile friendly? Combo box does work, but isn't great UX on mobile. This isn't an issue per se, I'm just looking for some advice here.

@pozil
Copy link
Owner

pozil commented Sep 19, 2019

@harrymendez23 I implemented the SLDS blueprint here.
The problem is that this component isn't really designed for mobile. It does works but using a lookup on mobile isn't a common/desired UX pattern.
You probably want to show another component when rendering on mobile.

@harrymendez23
Copy link
Author

@pozil thanks for the quick response. That's kind of the challenge I'm facing, none of the OOB components, like lightning:inputfield for instance, seem to behave as expected on mobile. I think lightning:inputfield does not work at all. This is area where salesforce continues to fail miserably.

@rnendza
Copy link

rnendza commented Sep 23, 2019

Great component. Extra points that we can actually style it without getting the middle finger from our friend Mr. Shadow DOM. What a concept. :)

Thanks for sharing!

Any issues you see with this and filtering through.. potentially 10 or 20k Account records searching by name?

@pozil
Copy link
Owner

pozil commented Sep 24, 2019

@rnendza I'm glad you like it.

There shouldn't be issue for filtering on large data sets, the client code is optimized for that. You'll just have to pay extra attention to your Apex filtering logic.

@rnendza
Copy link

rnendza commented Sep 25, 2019 via email

@pozil pozil added the wontfix This will not be worked on label Oct 16, 2019
@rnendza
Copy link

rnendza commented Oct 29, 2019

Thank you.. nice clean component btw.. Probably the best that I've seen. Funny thing is. i just noticed the winter 2020 native lookups (not using a custom component) on salesforce1 / salesforce mobile (whatever it's branded as these days) seem different unless I'm crazy.. more like a picklist which essentially appears as native model with a search input. and search results.

I might try to customize this by adding lookup filter recognition with it. .(seems to be impossible to get that info via the Ui Api or apex describes unfortunately so not gonna be easy)

@pozil
Copy link
Owner

pozil commented Nov 20, 2023

Important

While this lookup component won't be ported over to mobile, the Winter '24 release introduces a new Lightning base component that is similar to this lookup component and that works on mobile: lightning-record-picker (release announcement).
Note that there are some functionality gaps between the two components. See this readme for a comparison of the two component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants