Describe the bug
On a view with Mode Display when either the automatic or manual excerpt is enabled, the 'Read more' button shows the full content but keeps the existing excerpt, resulting in duplicate text.
This seems to be caused by a Javascript error:
Uncaught TypeError: Cannot set properties of undefined (setting 'display')
at HTMLDocument.<anonymous> (readmore.min.jsver=3.0.2:1:1286)
To Reproduce
Steps to reproduce the behavior:
Create a testimonial with some (long) content
Create a view with the following settings:
With style: Default, image on left, light theme, with a quote symbol in the heading
Layout: normal
Background: inherit from theme
Font color: inherit from theme
Place view on Page with shortcode
Open page with testimonials
Click on 'Read more' button
See both excerpt and the content of the testimonial
Expected behavior
When clicking on the 'Read more' button the excerpt should be hidden and replaced with the full content. Due to the JS error the excerpt is not hidden.
Demo gif
Which addons do you have installed: (No other plugins (or themes) are installed.)
Describe the bug On a view with Mode
Display
when either the automatic or manual excerpt is enabled, the 'Read more' button shows the full content but keeps the existing excerpt, resulting in duplicate text. This seems to be caused by a Javascript error:To Reproduce Steps to reproduce the behavior:
Create a testimonial with some (long) content
Create a view with the following settings:
With style: Default, image on left, light theme, with a quote symbol in the heading Layout: normal Background: inherit from theme Font color: inherit from theme
Place view on Page with shortcode
Open page with testimonials
Click on 'Read more' button
See both excerpt and the content of the testimonial
Expected behavior When clicking on the 'Read more' button the excerpt should be hidden and replaced with the full content. Due to the JS error the excerpt is not hidden.
Demo gif
Used versions