Skip to content

Conversation

@rajas94
Copy link

@rajas94 rajas94 commented Nov 10, 2020

Please look into the usage of lookup here in order to get an idea of lookup properties. Please feel free to reach out to me if you have any ideas/questions.

@rajas94 rajas94 requested a review from a team November 10, 2020 14:58
Copy link

@gorazd-up2go gorazd-up2go left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lookupRendering.test.js is missing tests for new functionality for example to disable and showing label on hasMoreResultsToDisplay

@rajas94 rajas94 requested a review from gorazd-up2go November 11, 2020 18:25
@gorazd-up2go
Copy link

@rajas94 There is one more minor improvement I think of and somebody else should look at it as well.

Copy link

@gorazd-up2go gorazd-up2go left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is ok but somebody else should look at it.

@rajas94 rajas94 requested a review from a team November 12, 2020 15:05
Copy link

@itsmebasti itsmebasti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are to many non trivial changes, that will be hard to merge and maintain in the future, let's try to find a more "extending" solution.

@rajas94 rajas94 requested a review from itsmebasti November 24, 2020 15:50
Copy link

@itsmebasti itsmebasti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's reduce the custom changes to reduce merging effort

}

get hasMoreResultsToDisplay() {
return this._hasFocus && this._searchResultsCount > this.resultsToDisplay;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you explain how search result counts are related to hasFocus? maybe add a note if this is really needed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we only want to display the helper text when the user is searching for something, as soon as he moves away from the input we don't want to display the text

}

handleClearSelection() {
if (this.disabled) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

short question, what is the difference between the clear and the remove method?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

handleRemoveSelectedItem is used to remove multi-select items and handleClearSelection is used to remove single entry lookup selection

@rajas94 rajas94 merged commit 532c315 into master Nov 25, 2020
@rajas94 rajas94 deleted the search branch November 25, 2020 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants