question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

rtl props seems wrong typed

See original GitHub issue

Hello

rtl props is typed as string but it seems it should be boolean to work with dir={rtl && 'rtl'}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
damien916commented, Dec 17, 2019

No I think the html props dir is waiting for rtl, ltr or auto but not a boolean.

0reactions
sajadjafaricommented, Dec 8, 2020

For far as I remember, swiper had this issue always… For every project, I say I would never use this package and end up using it because I’ve no enough time to find a better one without any issue…

When you try to change the direction dynamically, it won’t work, but it’s fine with reload… please please please fix this issue. I’m dealing with this bug for 2 years and it’s still there!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't access prop values · Issue #724 · testing-library/react ...
I need to access prop value to test its severity. ... import PropTypes from 'prop-types'; import { Snackbar } from '@materi...
Read more >
React Testing Library not rendering with correct props
However when I try to test it using RTL and Jest: ... It fails because my text is never passed properly as a...
Read more >
Common mistakes with React Testing Library - Kent C. Dodds
Some mistakes I frequently see people making with React Testing Library. ... This could be // because the text is broken up by...
Read more >
Frontend Handbook | React / Testing best practices - Infinum
A quick how to on using Jest to check if correct props are passed to a child component. This example is purely to...
Read more >
Writing unit tests with React, Typescript, and react-testing-library
I'm using generic React.ComponentProps defined within @types/react to get the type I need. No exporting/importing of the props type needed!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found