material-ui
material-ui copied to clipboard
[docs] Remove empty tags on the TransferList demos
- [x] I have followed (at least) the PR section of the contributing guide.
Why
I found a JSX closing tag error in docs about TransferList and fixed it. https://github.com/mui/material-ui/blob/60eaa3bf41cf89b796e74eea0f3497d0e02ec959/docs/data/material/components/transfer-list/TransferList.tsx#L89
Generated by :no_entry_sign: dangerJS against e9d4a8f443df275e1494ae6969cbe5507a0ef520
I can see the same in the SelectAllTrasferList.jsx|tsx. Would you mine updating those too?
@mnajdova Thanks for your reviewing.
I have also fixed SelectAllTransferList.
@mnajdova
I checked it again and I still think it contains unnecessary tags. <- it's not broken, but unnecessary.
The demo did not appear to be broken either.
Could you to check it again?
https://github.com/mui/material-ui/blob/2951e82a128199eecb317938d0af4582d3536e2a/docs/data/material/components/transfer-list/TransferList.tsx#L89
@mnajdova
I checked it again and I still think it contains unnecessary tags. <- it's not broken, but unnecessary.
The demo did not appear to be broken either.
Could you to check it again?
The demo is broken in https://deploy-preview-33127--material-ui.netlify.app/material-ui/react-transfer-list/#basic-transfer-list, for example try to move the first list item to the right.
@mnajdova
I checked it once again, and recorded it... I didn't think it was broken.
A self closing tag on this line is not necessary...
https://user-images.githubusercontent.com/70436490/201117638-7668f5ec-4e9f-4662-8478-0bd4c61ff136.mp4
@ekusiadadus I was refering to the example in the PR: https://deploy-preview-33127--material-ui.netlify.app/material-ui/react-transfer-list/#basic-transfer-list I can't see if the code on your side is changed, but it is clearly broken on the PR preview:

@mnajdova
Thanks for your review and sample movie. But, still I'm not sure it's broken....
You clicked 'Transfer All Item' button, is it right? Then the code works correct.
If you want to transfer only selected items, please click the button below.
I've checked my code and preview again, and still I think this code works correct.
You clicked 'Transfer All Item' button, is it right? Then the code works correct.
🤦♀️ you are right, I kept pressing the Trasfer all button for some reason.