Skip to main content

Search and Top Navigation

#5666 closed bug (duplicate)

Opened May 28, 2010 06:01AM UTC

Closed August 20, 2010 12:12PM UTC

Last modified October 11, 2012 09:15PM UTC

button remains in focused state when it opens a dialog

Reported by: klawd Owned by:
Priority: minor Milestone:
Component: ui.button Version: 1.8.2
Keywords: button, dialog Cc:
Blocked by: Blocking:
Description

a button that opens a dialog will stay in focused state until you click it again.

see http://jsfiddle.net/wjL3t/

or use this code, in case the fiddle gets deleted:

<button id="button1">test1</button>
<button id="button2">test2</button>
<button id="button3">test3</button>
<div id="dialog"></div>
<script>
$('#button1').button().click(function(){ $('#dialog').dialog(); });
$('#button2').button().click(function(){ $('#dialog').dialog(); });
$('#button3').button().click(function(){ $('#dialog').dialog(); });
</script>
Attachments (0)
Change History (3)

Changed May 28, 2010 06:08AM UTC by klawd comment:1

Replying to [ticket:5666 klawd]:

a button that opens a dialog will stay in focused state until you click it again. see http://jsfiddle.net/wjL3t/ or use this code, in case the fiddle gets deleted:
> <button id="button1">test1</button>
> <button id="button2">test2</button>
> <button id="button3">test3</button>
> <div id="dialog"></div>
> <script>
> $('#button1').button().click(function(){ $('#dialog').dialog(); });
> $('#button2').button().click(function(){ $('#dialog').dialog(); });
> $('#button3').button().click(function(){ $('#dialog').dialog(); });
> </script>
> 

Note that only the the button that actually initially opens the dialog shows this behaviour

Changed August 20, 2010 12:12PM UTC by scottgonzalez comment:2

resolution: → duplicate
status: newclosed

Duplicate of #5265.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:3

milestone: TBD

Milestone TBD deleted