antizer
antizer copied to clipboard
Table dataSource not being camel cased automatically
If I do something like
[ant/table {:data-source [..]}
it doesn't work, while [ant/table {:dataSource [...]}]
works as expected.
Checking the code it looks like it should work really
(ac/map-keys->camel-case {:data-source "hello"})
{"dataSource" "hello"}```
Any idea about what could be the issue?
Actually the problem seems to be with all the table opts, also filterDropdownVisible
has the same problem for example.
It's Reagent that does the case conversion here, and it ignores any keys that start with data-
:
https://github.com/reagent-project/reagent/blob/v0.8.1/src/reagent/impl/util.cljs#L32-L39