Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table dataSource not being camel cased automatically #35

Open
AndreaCrotti opened this issue Aug 20, 2019 · 2 comments
Open

Table dataSource not being camel cased automatically #35

AndreaCrotti opened this issue Aug 20, 2019 · 2 comments

Comments

@AndreaCrotti
Copy link

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?
@AndreaCrotti
Copy link
Author

Actually the problem seems to be with all the table opts, also filterDropdownVisible has the same problem for example.

@ash14
Copy link

ash14 commented Oct 1, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants