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

Problem with whitespace #71

Open
Ryzlane opened this issue Aug 28, 2018 · 1 comment
Open

Problem with whitespace #71

Ryzlane opened this issue Aug 28, 2018 · 1 comment

Comments

@Ryzlane
Copy link

Ryzlane commented Aug 28, 2018

Hello,

I have a problem using whitespaces on inputs (including textareas, ...): they don't work at all and I don't understand why.

Didn't see someone having the same problem on the internet.

Thanks if someone can help me with that, love the package!

@espressoBump
Copy link

espressoBump commented Sep 21, 2018

Hello,

If you go into the node_modules specifically:
react-fullpage>node_modules>react>react-with-addons.js
and use ctrl-f for 'spacebar' you'll find this:

/**
* If native textInput events are available, our goal is to make
* use of them. However, there is a special case: the spacebar key.
* In Webkit, preventing default on a spacebar textInput event
* cancels character insertion, but it also causes the browser
* to fall back to its default spacebar behavior of scrolling the
* page.
*
* Tracking at:
* https://code.google.com/p/chromium/issues/detail?id=355103
*
* To avoid this issue, use the keypress event as if no textInput
* event is available.
*/

My friends and I were looking at this yesterday and completely unable to solve the issue after a few hours. But I've posted this in case you can figure it out. I instead went to lines 223 - 225 in
react-fullpage>dist>SectionsContainer.js,
and commented them out. Make sure you click CTRL S to save. This is definitely not the best way to solve the issue, but it works for me.

        // if ([32,37, 38, 39, 40].indexOf(e.keyCode) > -1) {
        //     e.preventDefault(); // Prevent unwanted scrolling on Firefox
        // } 

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