-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Select: Fix (#11392 & #12327) #12329
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6d833ce
Select: Fix (#11392 & #12327) Writing space become small when collaps…
akki-jat 21475c6
Changes as IE & Edge dosen't support display: contents
akki-jat f69bad3
Revert "Changes as IE & Edge dosen't support display: contents"
akki-jat 1f257ac
Fixed issue - input going in new line even if there is space (collaps…
akki-jat b77e593
Made calculating with dynamic (replaced static 208 with el-select__ta…
akki-jat 7263e47
Select: Fixed Bug - Extra Height
akki-jat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -109,7 +109,6 @@ | |
| z-index: $--index-normal; | ||
| top: 50%; | ||
| transform: translateY(-50%); | ||
| display: flex; | ||
| align-items: center; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The following two lines can be deleted. |
||
| flex-wrap: wrap; | ||
| } | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
When

collapse-tagsis set totrue, there are some problems.Maybe you should not modify this line.
Uh oh!
There was an error while loading. Please reload this page.
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.
@ziyoung can you tell me your configuration?
Because its running fine on my side.
You can check
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.
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.
@ziyoung now check.
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.
@akki-jat have you fixed it?

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.
@wacky6 / @ziyoung test it again after taking latest.
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.
It's still broken: https://jsfiddle.net/0fj6tpvo/2/
.el-input's input height is causing the problem.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.
@akki-jat I test it on my computer and this issue isn't fixed. Maybe this is caused
ElTagcomponent. When I use a function component to wrap ElTag, it works fine.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.
@ziyoung this problem caused by resetInputHeight() function. When we remove a tag this function is call to determine the input height but when this method calculates the height the ( +1 ) tag is not removed ( even if there are no extra selection ). So, when it calculates height it also takes +1 tag into consideration.
Note: UI updates after resetInputHeight() function
Uh oh!
There was an error while loading. Please reload this page.
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.
@akki-jat @wacky6 after I optimize

ElTagcomponent https://github.com/ElemeFE/element/pull/13069/files , it works fine on my computer.