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

Adding custom/typed tags to TagField expands picker instead of adding #1591

Closed
fabriciomurta opened this Issue Jun 15, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@fabriciomurta
Contributor

fabriciomurta commented Jun 15, 2018

When typeAhead is enabled on tagFields and two keys are pressed too quickly, then input to add the tag is entered (like the <ENTER> key), the picker is expanded instead of adding the tag.

This happens because, when the 'on key up' event is triggered too quickly (by pressing two or more keys very quickly), a condition to expand the picker is fulfilled -- two consecutive typeAhead queries with the same value are triggered.

To reproduce this issue, just hit the two last keys on the custom tag name very quickly, then try to add the tag with the <ENTER> key in the example below:

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

<!DOCTYPE html>

<html>
<head runat="server">
    <title>TagField v4 - Ext.NET Examples</title>
</head>
<body>
    <form runat="server">
        <ext:ResourceManager runat="server" />
        <ext:TagField runat="server" ID="TFRecipient" TypeAhead="true"
            HideSelected="true" FieldLabel="An" Width="650" AllowBlank="false"
            Padding="5" IndicatorIcon="Help"
            IndicatorTip="Indicator Tip test.">
            <Tags>
            </Tags>
            <Items>
                <ext:Tag Value="0" Text="George (boc@nog.org)" />
                <ext:Tag Value="1" Text="Sang Lamie (boc-sang@nog.org)" />
                <ext:Tag Value="2" Text="Alhos Hostis (boc-alhos@nog.org)" />
                <ext:Tag Value="3" Text="Guildoval Boturici (boc-guild@nog.org)" />
            </Items>
        </ext:TagField>
    </form>
</body>
</html>

@fabriciomurta fabriciomurta added this to the 4.6.0 milestone Jun 15, 2018

@fabriciomurta fabriciomurta self-assigned this Jun 15, 2018

@fabriciomurta

This comment has been minimized.

Contributor

fabriciomurta commented Jun 15, 2018

Fixed! The fix will be available next Ext.NET release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment