-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix(module:select): fix select disable cursor #3287
Merged
Merged
Conversation
This file contains 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
close #<ng-template #inputTemplate> <input #inputElement autocomplete="something-new" class="ant-select-search__field" (compositionstart)="isComposing = true" (compositionend)="isComposing = false" (input)="updateWidth()" [ngModel]="inputValue" (ngModelChange)="setInputValue($event)" [disabled]="nzSelectService.disabled"> </ng-template> <div class="ant-select-selection__rendered"> <div *ngIf="nzPlaceHolder" nz-select-unselectable [style.display]="placeHolderDisplay" class="ant-select-selection__placeholder">{{ nzPlaceHolder }}</div> <!--single mode--> <ng-container *ngIf="nzSelectService.isSingleMode"> <!--selected label--> <div *ngIf="nzSelectService.listOfCachedSelectedOption.length && nzSelectService.listOfSelectedValue.length" class="ant-select-selection-selected-value" [attr.title]="nzSelectService.listOfCachedSelectedOption[0]?.nzLabel" [ngStyle]="selectedValueStyle"> {{ nzSelectService.listOfCachedSelectedOption[0]?.nzLabel }} </div> <!--show search--> <div *ngIf="nzShowSearch" class="ant-select-search ant-select-search--inline" [style.display]="nzOpen ? 'block' : 'none'"> <div class="ant-select-search__field__wrap"> <ng-template [ngTemplateOutlet]="inputTemplate"></ng-template> <span class="ant-select-search__field__mirror">{{inputValue}} </span> </div> </div> </ng-container> <!--multiple or tags mode--> <ul *ngIf="nzSelectService.isMultipleOrTags"> <ng-container *ngFor="let option of nzSelectService.listOfCachedSelectedOption | slice: 0 : nzMaxTagCount;trackBy:trackValue;"> <li [@ZoomMotion] [nzNoAnimation]="noAnimation?.nzNoAnimation" [attr.title]="option.nzLabel" [class.ant-select-selection__choice__disabled]="option.nzDisabled" class="ant-select-selection__choice"> <div class="ant-select-selection__choice__content">{{ option.nzLabel }}</div> <span *ngIf="!option.nzDisabled" class="ant-select-selection__choice__remove" (mousedown)="$event.preventDefault()" (click)="removeSelectedValue(option, $event)"> <i nz-icon type="close" class="ant-select-remove-icon" *ngIf="!nzRemoveIcon; else nzRemoveIcon"></i> </span> </li> </ng-container> <li *ngIf="nzSelectService.listOfCachedSelectedOption.length > nzMaxTagCount" [@ZoomMotion] [nzNoAnimation]="noAnimation?.nzNoAnimation" class="ant-select-selection__choice"> <div class="ant-select-selection__choice__content"> <ng-container *ngIf="nzMaxTagPlaceholder"> <ng-template [ngTemplateOutlet]="nzMaxTagPlaceholder" [ngTemplateOutletContext]="{ $implicit: nzSelectService.listOfSelectedValue | slice: nzMaxTagCount}"> </ng-template> </ng-container> <ng-container *ngIf="!nzMaxTagPlaceholder"> + {{ nzSelectService.listOfCachedSelectedOption.length - nzMaxTagCount }} ... </ng-container> </div> </li> <li class="ant-select-search ant-select-search--inline"> <ng-template [ngTemplateOutlet]="inputTemplate"></ng-template> </li> </ul> </div> <span *ngIf="nzAllowClear && nzSelectService.listOfSelectedValue.length" class="ant-select-selection__clear" nz-select-unselectable (mousedown)="$event.preventDefault()" (click)="onClearSelection($event)"> <i nz-icon type="close-circle" theme="fill" *ngIf="!nzClearIcon; else nzClearIcon" class="ant-select-close-icon"></i> </span> <span class="ant-select-arrow" nz-select-unselectable *ngIf="nzShowArrow"> <i nz-icon type="loading" *ngIf="nzLoading; else defaultArrow"></i> <ng-template #defaultArrow> <i nz-icon type="down" class="ant-select-arrow-icon" *ngIf="!nzSuffixIcon; else nzSuffixIcon"></i> </ng-template> </span>
Codecov Report
@@ Coverage Diff @@
## master #3287 +/- ##
=======================================
Coverage 97.38% 97.38%
=======================================
Files 559 559
Lines 11650 11650
Branches 837 837
=======================================
Hits 11345 11345
Misses 194 194
Partials 111 111 Continue to review full report at Codecov.
|
Deploy preview for ng-zorro-master ready! Built with commit d2e0164 |
andrew-yangy
pushed a commit
to andrew-yangy/ng-zorro-antd
that referenced
this pull request
Jun 20, 2019
Ricbet
pushed a commit
to Ricbet/ng-zorro-antd
that referenced
this pull request
Apr 9, 2020
hsuanxyz
pushed a commit
to hsuanxyz/ng-zorro-antd
that referenced
this pull request
Aug 5, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
close #3246
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information