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

Cursor jumps to next line sometimes (in this case with headings) #15

Closed
madshargreave opened this issue Nov 24, 2016 · 3 comments
Closed

Comments

@madshargreave
Copy link

When using headings, the cursor is not on the same line

@jch254
Copy link

jch254 commented Feb 2, 2017

@madshargreave how are you using the component?

I was able to get it working with headings by using something like:

      <Heading size={1} big>
        <Typist avgTypingSpeed={40} startDelay={1000} cursor={{ hideWhenDone: true }}>
            Wassup
        </Typist>
      </Heading>

@jstejada
Copy link
Owner

jstejada commented Feb 9, 2017

hi @madshargreave thanks for reporting this. I have actually been able to reproduce this, only on chrome, and it's driving me nuts. I think I'll have a fix for this soon. Sorry for the late reply!

@jstejada jstejada changed the title Cursor doesnt work with headings Cursor jumps to next line sometimes (in this case with headings) Feb 9, 2017
@jstejada
Copy link
Owner

Hi @madshargreave , this is actually a different issue from what I thought! The problem is that by default headings are display: block, so you need to change the heading's display to something like inline-block for the cursor to display correctly next to it. Or you could also do @jch254's solution.

Thanks!

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

3 participants