Comment 1 for bug 1300382

Revision history for this message
Bill Filler (bfiller) wrote : Re: Comment button always disabled in Facebook

Looking at the specifc Facebook code in the page. It's basically a <textarea id="composerInput"> and a <button> in a <form> as follows:

<form method="post" class="composer_form" data-store="&#123;&quot;expand_composer&quot;:true&#125;" id="comment_form_1068640102_10202428868777549" action="/a/comment.php?actionsource=2&amp;ft_ent_identifier=10202428868777549&amp;gfid=AQB-5WrCooTqARii&amp;__av=726399492&amp;refid=52" onsubmit="return window.MAjaxify&amp;&amp;MAjaxify.form(event,this,&quot;async_composer&quot;,&quot;cache&quot;,null,false);">
<input type="hidden" name="fb_dtsg" value="AQAEgIey" autocomplete="off" />
<input type="hidden" name="charset_test" value="€,´,€,´,水,Д,Є" />
<table cellspacing="0" cellpadding="0" class="comboInput"><tr><td class="inputCell"><div class="mentions" id="u_0_6">

<textarea class="composerInput mentions-input" id="composerInput" name="comment_text" rows="1" placeholder="Write a comment..." cols="15" data-sigil="textarea"></textarea></div></td>
<td class="btnCell"><button type="submit" value="Comment" class="touchable _56bs _5of- _56bt" disabled="1" name="post" data-sigil="touchable composer-submit">
<span class="_55sr">Comment</span></button>
</td>
</tr>
</table>
</form>

There must be some code that listens for changes to the textarea and enables the button appropriately and this is not working.
Can we verify that our input is correctly getting propagated to the underlying textarea on the device? Seems as if it's not somehow, even though it is correctly displayed. Perhaps the QtInputMethod is not getting commited correctly on multi-line text areas?