Bug 7155 - TinyMCE: Selection lost when clicking on <select> element.
Summary: TinyMCE: Selection lost when clicking on <select> element.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P3 Major
Assignee: Nobody
URL: http://tinymce.moxiecode.com
Keywords: HasReduction
Depends on:
Blocks: 6627
  Show dependency treegraph
 
Reported: 2006-02-09 06:28 PST by Moxiecode Systems
Modified: 2008-02-29 16:51 PST (History)
4 users (show)

See Also:


Attachments
Testcase (625 bytes, text/html)
2006-02-14 04:13 PST, Joost de Valk (AlthA)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Moxiecode Systems 2006-02-09 06:28:30 PST
Expected Results: 
When a selection is made and the <select> element activated (to show dropdown) the selection should remain, just as when you do something with a popup window.

What I got: Selection is lost instead of "grayed" out like when a popup is made.

Steps to reproduce:

1) Go to http://tinymce.moxiecode.com/example.php?example=true
2) Select some text, click on one of the dropdowns for selecting font/fontsize etc.
3) The selection is lost.

Try the same thing but with clicking on the color selector for a popup or similar, selection is left in the background but grayed out.

You should probably construct your own testcase, since the current version has some workarounds implemented for this (for older Safari versions).
Comment 1 Aldo Hoeben 2006-02-10 04:55:38 PST
See http://hoeben.net/files/webkit/repro7155.html for a simple repro document.

Selection in the contenteditable div is cleared when touching the <select>
Comment 2 Joost de Valk (AlthA) 2006-02-14 04:13:04 PST
Created attachment 6481 [details]
Testcase

Added Aldo's testcase to the bug itself.
Comment 3 Maciej Stachowiak 2006-08-12 22:53:29 PDT
Seems to work with dev versions of TinyMCE, for example http://tinymce.moxiecode.com/test/examples/example_full.htm
Comment 4 Ted Rust 2007-07-31 23:26:44 PDT
Tested with Safari 3.0.3 on OS X.  This is still a valid bug.  However, I did notice something interesting in the details.  The first time you click on any given drop down menu, the selection is eradicated.  However, any subsequent clicks on that same menu, the selection is sustained.  I do not know if this was the case prior to 3.0.3.
Comment 5 Robert Blaut 2008-02-10 13:03:14 PST
I've tested the test case in Webkit r30119 and I don't see buggy behavior. Is it fixed? Any confirmations?
Comment 6 Mark Rowe (bdash) 2008-02-29 16:51:56 PST
The behaviour of TOT on the attached test case matches that of Firefox 2.  Firefox 3 appears to have regressed and exhibits similar behaviour to that attributed to WebKit in the original report.

Closing as FIXED as we now match the reporter's expectations.