react-fullpage icon indicating copy to clipboard operation
react-fullpage copied to clipboard

Compare the content of the slide divs

Open ElliottLandsborough opened this issue 4 years ago • 1 comments

Separate pull request because this might be an extremely inefficient way of achieving what is required. I'm not very confident with anything DOM related so there might be a better way to detect changes in the slide contents.

This patch:

  1. gets the innerHTML of any slides that have already been initialized
  2. Puts them into an array of strings
  3. Compares them to the ones that may have been added which have triggered 'componentDidUpdate'.

If the old/new slides are different the statement validates as false so the return statement is skipped.

ElliottLandsborough avatar Aug 29 '19 13:08 ElliottLandsborough

https://github.com/alvarotrigo/react-fullpage/issues/157

ElliottLandsborough avatar Aug 29 '19 13:08 ElliottLandsborough

Why closed?

alvarotrigo avatar Nov 09 '22 13:11 alvarotrigo