In the options dropdown menu toggle OFF wrap lines
run mergely.options() in the console to inspect current options
Observe unexpected result wrap_lines: false, line_numbers: true, sidebar: true
Expected behavior:
When view sidebars and wrap lines are disabled then mergely.options() should return wrap_lines: false, sidebar: false
Actual result:
Setting the option wrap lines to off causes mergely.options() to report the option sidebar: true
Impact - Low. The editor still behaves as the user would expect.
Benefit of fixing - The current workaround involves maintaining the state of the mergely options locally. Developing with mergely would be simpler if options() would reflect the current options as the documentation describes.
options(options?: [object])
Gets or sets the editor [Options](https://mergely.com/doc#options). With no arguments, the function will return the currently configured options. When supplied options to change, the editor will automatically update with the new settings.
Setup:
Steps to reproduce:
wrap_lines: true, line_numbers: true, sidebar: true
wrap_lines: true, line_numbers: true, sidebar: false
wrap_lines: false, line_numbers: true, sidebar: true
Expected behavior:
When view sidebars and wrap lines are disabled then mergely.options() should return
wrap_lines: false, sidebar: false
Actual result:
Setting the option wrap lines to off causes mergely.options() to report the option
sidebar: true
Impact - Low. The editor still behaves as the user would expect.
Benefit of fixing - The current workaround involves maintaining the state of the mergely options locally. Developing with mergely would be simpler if options() would reflect the current options as the documentation describes.