Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TagField: adding items with CreateNewOnBlur causes a wrong .getValue() result and also might result in a JavaScript error #1278

Closed
DaniilVeriga opened this issue Mar 7, 2016 · 0 comments

Comments

@DaniilVeriga
Copy link

Actually, the issue is the same as #1206 (CreateNewOnEnter), but with CreateNewOnBlur.

The post with a bug report:
http://forums.ext.net/showthread.php?60465&p=276870&viewfull=1#post276870

Test Case

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

<!DOCTYPE html>
<html>
<head runat="server">
    <title>Ext.NET v4 Example</title>
</head>
<body>
    <form runat="server">
        <ext:ResourceManager runat="server" />

        <ext:TagField
            ID="TagField1"
            runat="server"
            CreateNewOnBlur="true"
            CreateNewOnEnter="true" />

        <ext:Button runat="server" Text=".getValue()" Handler="console.log(App.TagField1.getValue());" />
    </form>
</body>
</html>

Steps to reproduce

  • Click inside the TagField
  • Type "1" and press Tab
  • Click inside the TagField again
  • Press "2" and press Tab
  • Click the '.getValue()" button
  • Actual: only the last item is shown in a console
  • Expected: both the items are shown in a console
  • Also if keep adding items on blur and enter, them at some point a JavaScript error might be thrown: cannot read property 'internalId' of undefined.
@DaniilVeriga DaniilVeriga self-assigned this Mar 7, 2016
@DaniilVeriga DaniilVeriga added this to the Release 4.0.0-beta1 milestone Mar 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant