Orhan Tozan
02/24/2021, 6:38 PMButton(onClick = {})
and
Button(modifier = Modifier.clickable {})
?
Any reason why there are two different API's for telling the button what to do on click? Which one do people generally use?Leland Richardson [G]
02/24/2021, 6:41 PMLeland Richardson [G]
02/24/2021, 6:41 PMOrhan Tozan
02/24/2021, 6:52 PMLeland Richardson [G]
02/24/2021, 6:53 PMZach Klippenstein (he/him) [MOD]
02/24/2021, 7:04 PMLeland Richardson [G]
02/24/2021, 7:38 PMAlexandre Elias [G]
02/24/2021, 8:15 PMAlexandre Elias [G]
02/24/2021, 8:18 PMCheckbox
take nullable onClick so that you can disable the inner accessibility-focusable node when you're providing your own clickable modifier.Zach Klippenstein (he/him) [MOD]
02/24/2021, 8:30 PMLeland Richardson [G]
02/24/2021, 8:53 PMLeland Richardson [G]
02/24/2021, 8:53 PMZach Klippenstein (he/him) [MOD]
02/24/2021, 8:58 PMZach Klippenstein (he/him) [MOD]
02/24/2021, 9:00 PM