subtirelumihail / react-fullpage

A react implementation of fullpage.js
304 stars 105 forks source link

Problem with whitespace #71

Open Ryzlane opened 6 years ago

Ryzlane commented 6 years ago

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 commented 5 years ago

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:

/**

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
        // }