EasyUI Forum

General Category => Bug Report => Topic started by: kingor2001 on October 31, 2017, 03:21:24 AM



Title: bug in textbox with button
Post by: kingor2001 on October 31, 2017, 03:21:24 AM
a textbox with a attached button, both the 'readonly' and 'disable' properties can't stop the attached button's click event.


Title: Re: bug in textbox with button
Post by: jarry on October 31, 2017, 08:10:54 AM
When the textbox is disabled, the 'onClickButton' event is disabled too.
Code:
$('#tb').textbox({
  disabled: true,
  buttonText:'SEARCH',
  onClickButton: function(){
    console.log('onClickButton')
  }
})


Title: Re: bug in textbox with button
Post by: kingor2001 on October 31, 2017, 09:32:53 AM
tks. I direct bind click event by jQuery. Now using onClickButton is ok.