KnockoutJs link 只有在我打开新标签页时才会打开

KnockoutJs link only opens if i open on a new tab

我在下面有一个数据绑定,我可以成功地右键单击并在新选项卡上打开它。但是正常的点击并不会真正打开 link。有人知道我在这里可能遗漏了什么或做错了什么吗?

我正在使用 KnockoutJS

<div data-bind="attr: { \'class\': \'kgCellText colt\' + $index()}"><a href="#" data-bind="attr: {\'href\': $url, \'_target\': \'blank\'}, text: Text on top of url"></div>

不知道该说什么,因为这基本上很管用?

注意:(这在 Whosebug 上不起作用,因为它们阻止打开新的 windows(阻止弹出窗口策略))(参见 https://jsfiddle.net/Ltnbcxf6/2/

class ViewModel {
    constructor() {
    this.first = {
      url: ko.observable(),
      text: ko.observable(),
      target: ko.observable()
    };
    
    setTimeout(() => this.load(this.first), 300);
  }
  
  load(item) {
    item.url('http://www.myfakeurltestforjsfiddle.com');
    item.text('fake url test');
    item.target('_blank');
  }
}
ko.applyBindings(new ViewModel());
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.4.2/knockout-min.js"></script>
<a href="#" data-bind="  
  attr: {
      href: $root.first.url,
      target: $root.first.target
  },
  text: $root.first.text"></a>