Thank you for your reply.
1. Click the checkbox in the header to select all rows (including checkboxes).
2. If you click the checkbox in the header after deselecting one of the checkboxes, all rows are selected, but the unchecked checkboxes are not checked.
You can refer to the same jsfiddle.