[ADF-2032] Using Viewer in overlay mode only works once Created: 24-Nov-17  Updated: 28-Nov-17  Resolved: 28-Nov-17

Status: Done
Project: Apps Development Framework
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0.0

Type: Bug
Reporter: Ole Hejlskov Assignee: Cristina Jalba
Resolution: Resolved Votes: 0
Labels: regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
is related to by ADF-2043 Create a test case to cover the Viewe... Done
Bug Priority:
Category 1
Sprint: ADF Sprint 35


When using the viewer in overlay mode, the viewer only displays the first time.

Wiring up the document list and the viewer like this:



... and the TS:

  showPreview(event) {
    this.showViewer = false;
    if (event.value.entry.isFile) {
      this.nodeId = event.value.entry.id;
      this.showViewer = true;

  onGoBack(event: any) {
    this.showViewer = false;
    this.nodeId = null;

Double clicking in the document list opens the viewer and all is good. Close the viewer (hit escape or click the arrow), then try to open the same (or another) document and nothing happens.

The (preview) event is fired properly with a node, but nothing happens when showFile is set to true the second time.

Comment by Denys Vuika [ 27-Nov-17 ]

Docs have been updated with the correct example of integration. Also, the demo shell sidebar contains a separate "Overlay Viewer" section for testing Viewer in the overlay mode.

Comment by Cristina Jalba [ 28-Nov-17 ]

Please change docs/viewer.component.md, line 72 'Pagination' to 'Viewer'

Comment by Denys Vuika [ 28-Nov-17 ]

Updated the docs for "development" branch.

Generated at Tue Aug 11 23:02:21 BST 2020 using Jira 7.13.15#713015-sha1:7c5ddd2c3e1709974ae9c48c17df8edd3919fe2c.