fix(data-table): cancelling selection should uncheck batch selection checkbox

This commit is contained in:
Eric Liu 2020-10-26 08:24:20 -07:00
commit a0caa12a27
3 changed files with 148 additions and 136 deletions

View file

@ -22,9 +22,16 @@
* @type {string} [id]
*/
export let id = "ccs-" + Math.random().toString(36);
/**
* Obtain a reference to the input HTML element
* @type {null | HTMLInputElement} [ref=null]
*/
export let ref = null;
</script>
<input
bind:this="{ref}"
type="checkbox"
class:bx--checkbox="{true}"
checked="{indeterminate ? false : checked}"