EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Coder on July 30, 2019, 05:28:39 PM



Title: {FIXED} button as linkbutton in Chrome (disable didnt work)
Post by: Coder on July 30, 2019, 05:28:39 PM
Code:
 <button form="main_form" type="submit" class="easyui-linkbutton" plain="true" name="action"
id="Test1"
data-options="iconCls:'icon-test'" disabled="disabled"
value="Test1">Test1</button>
<button form="main_form" type="submit" class="easyui-linkbutton" plain="true" name="action"
id="Test2"
data-options="iconCls:'icon-test', disable: 'true'"
value="Test2">Test2</button>

in Chrome visible as disabled but mouse click do submit

Code:
$('#Test1').linkbutton('enable');
$('#Test1').linkbutton('disable');
$('#Test2').linkbutton('enable');
$('#Test2').linkbutton('disable');

same: correct visible but mouse click do submit


only when
Code:
$('#Test1').prop('disabled',true);
$('#Test2').prop('disabled',true);
work correctly : visible disabled AND mouse click do nothing

but I need to initialize this buttons as disabled without script


Title: Re: button as linkbutton in Chrome (disable didnt work)
Post by: stworthy on July 30, 2019, 06:59:47 PM
Please try to update to the newest version.


Title: Re: {FIXED} button as linkbutton in Chrome (disable didnt work)
Post by: Coder on August 04, 2019, 05:50:09 AM
Thnx