NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.87k stars 3.92k forks source link

nz-transfer move operations disabled state #8814

Open krisztofer-kunc opened 2 weeks ago

krisztofer-kunc commented 2 weeks ago

Reproduction link

https://stackblitz.com/edit/angular-pmeuuz

Steps to reproduce

Context: The nz-transfer must have some disabled checked items

  1. Check another item => the move right button will be highlighted.
  2. Uncheck the same item => the move right button is still highlighted

What is expected?

The move right button should be disabled

What is actually happening?

The move right button is still enabled

Environment Info
ng-zorro-antd 18.1.1
Browser Chrome

https://github.com/user-attachments/assets/89dcec2a-f3e5-488a-b6cf-c67978dba223


The issue seems to be related to this function: https://github.com/NG-ZORRO/ng-zorro-antd/blob/d58c52d21f294983e2da0cc425c153c7f029eae6/components/transfer/transfer.component.ts#L246

ParsaArvanehPA commented 2 weeks ago

Hi @krisztofer-kunc Thank you for reporting this issue 👍 A fix has been made #8824

krisztofer-kunc commented 2 weeks ago

Many thanks!