* zin: skip to set url on disabled buttons.

This commit is contained in:
sunhao
2023-08-02 16:19:42 +08:00
parent 7e04efcf9b
commit 8c939d9d6e
+1 -1
View File
@@ -33,7 +33,7 @@ class btn extends wg
protected function getProps()
{
$url = $this->prop('url');
$url = $this->prop('disabled') ? $this->prop('url') : null;
$target = $this->prop('target');
$props = array_merge($this->getRestProps(), array('title' => $this->prop('hint')));