Skip to content

Ternary operator issues #19

@Janatbek

Description

@Janatbek

after upgrading to "syncfusion-javascript": "^16.2.0-mu.4" we are facing an issue that the page is not opening at all on IE 11
the console error says
image

clicking the error it brings to Microsoft Docs Page
The application opens fine in Chrome but won't load in IE

the Tech stack: Angular, c#

some sample code where it might break:

import {EJComponents} from 'ej-angular2/src/ej/core';
declare var ej: any;

and in diagram settings:

this.vizLayout = {
      type: 'hierarchicaltree',
      marginY: 50,
      horizontalSpacing: 30,
      verticalSpacing: 40
    };
    this.vizPageSettings = {
      multiplePage: false,
      scrollLimit: 'diagram'
    };
    this.vizSnapSettings = {
      snapConstraints: 'none'
    };
    this.vizConstraints = ej.datavisualization.Diagram.DiagramConstraints.Default;
    this.vizTool = ej.datavisualization.Diagram.Tool.ZoomPan;
  }

If I put debugger before this setting the application opens fine and breaks after setup,
but If I remove debugger, the app won't load

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions