Ext.NET icon indicating copy to clipboard operation
Ext.NET copied to clipboard

JsonMode.ToLower config options are not lowercase with GenerateMode.WithSet

Open fabriciomurta opened this issue 8 years ago • 1 comments

This error was found on Ext.NET Mobile -- #1455.

It was possible to reproduce the issue with the Ext.Net.Breadcrumb.OverflowHandler config option at least:

<%@ Page Language="C#" %>

<!DOCTYPE html>
<script runat="server">
    protected void triggerBc(object sender, DirectEventArgs e)
    {
        bc1.OverflowHandler = OverflowHandler.Menu;
    }
</script>

<html>
<head runat="server">
    <title></title>
</head>
<body>
    <form runat="server" id="fm1">
    <div>
        <ext:ResourceManager runat="server" />
        <ext:Button runat="server" OnDirectClick="triggerBc" Text="Trigger error" />
        <ext:Breadcrumb ID="bc1" runat="server" />
    </div>
    </form>
</body>
</html>

To get the generated script with uppercase value load the page, open network monitor (in browser's developer console), clear any existing log, then click the Trigger error button. If broken, it should show:

{script:"App.bc1.setOverflowHandler(\"Menu\");"}

Notice the uppercase Menu.

fabriciomurta avatar Mar 26 '17 04:03 fabriciomurta

Get also fixes from #1461 in.

fabriciomurta avatar Mar 29 '17 06:03 fabriciomurta