Bug 1503286 - fix double-click in list of suggested words after bug 1475817. r=jorgk,aceman
authorAlice White <alice0775@gmail.com>
Wed, 31 Oct 2018 23:07:58 +0100
changeset 32780 22fb120a634f0281b496b650d21da0d05bded5d4
parent 32779 0216225d5fbaba735924a201d763f34a20c466c4
child 32781 89c98293e4af398d5e642aaedec9f6f08e2e8a9c
push id2343
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:37:21 +0000
treeherdercomm-beta@a0750c375f71 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorgk, aceman
bugs1503286, 1475817
Bug 1503286 - fix double-click in list of suggested words after bug 1475817. r=jorgk,aceman
editor/ui/dialogs/content/EdSpellCheck.xul
--- a/editor/ui/dialogs/content/EdSpellCheck.xul
+++ b/editor/ui/dialogs/content/EdSpellCheck.xul
@@ -56,17 +56,17 @@
   <grid flex="1">
     <columns><column flex="1"/><column/></columns>
     <rows>
       <row flex="1">
         <!-- BUG! setting class="MinWidth20em" on tree doesn't work (width=0) -->
         <richlistbox id="SuggestedList"
                      class="theme-listbox"
                      onselect="SelectSuggestedWord()"
-                     ondblclick="if (gAllowSelectWord) Replace(event.target.label);"/>
+                     ondblclick="if (gAllowSelectWord) Replace(event.target.value);"/>
         <vbox>
           <grid>
             <columns><column class="spell-check" flex="1"/><column class="spell-check" flex="1"/></columns>
             <rows>
               <row>
                 <button id="Replace" label="&replaceButton.label;"
                         oncommand="Replace(gDialog.ReplaceWordInput.value);"
                         accesskey="&replaceButton.accessKey;"/>