Skip to content

Fix scrolling behavior Question page + fix bug with editor content disappearing after submit

Grigor Malo requested to merge question-metadata-form-style-fix into master

After last merge, the scrolling behavior was broken in Question page, making editing area and the metadata form extend more than screen height and breaking the layout

  • add height: 100%; overflow-y: auto; to MetadataWrapper; remove them from Metadata component
  • make editing area scrollable if content is longer than available height, with tools menu fixed on top

Also, keeping the editor content as internal state of the memoized Wax wrapper is buggy when not in test mode; internal state saves the initial state of the content in order to re-render it when reseting a test question; but this will also reset initial content after changing readOnly which causes a rerender.

  • use content received from props if question is not in test mode
Edited by Grigor Malo

Merge request reports