This is a migrated thread and some comments may be shown as answers.

[Solved] TabStrip OnSelect event fires when selecting text in input tag in FF

1 Answer 114 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
gamer
Top achievements
Rank 1
gamer asked on 19 Aug 2010, 09:04 AM
Hi,

When i place <input/> tag inside tabstrip and doubleclicking or selecting text within input, tabstrip event  OnSelect fires.
It happens in Firefox 3.6.8, in IE 8 it works fine.

Here is code sample:
<script type="text/javascript">
    function onTabStripSelect() {
        alert("1");
    }
</script>
<%=Html.Telerik().TabStrip().Name("tabstrip1").Items(
    items=>
        {
            items.Add().Text("tab1").Content("<input type='text' value='asdf'/>");
        }).ClientEvents(events=>
        {
            events.OnSelect("onTabStripSelect");
        })
        .SelectedIndex(0)%>

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 19 Aug 2010, 11:48 AM
Hello gamer,

I confirm this as a bug, which I am glad to inform you will be fixed in the next official release of Telerik Components for ASP.NET MVC, scheduled for the end of August.

You can avoid this erroneous behavior if you wire select event of the input and call stopPropagation() method.

I have updated your Telerik points.

Greetings,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TabStrip
Asked by
gamer
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or