Commit 3242cf69 authored by mercury233's avatar mercury233

test fix dropdown menu

parent 1607ada9
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
<button i18n class="btn btn-secondary dropdown-toggle btn-sm" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <button i18n class="btn btn-secondary dropdown-toggle btn-sm" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
游戏模式 游戏模式
</button> </button>
<div class="dropdown-menu"> <div class="dropdown-menu" id="game_mode_dropdown">
<h6 i18n class="dropdown-header">匹配</h6> <h6 i18n class="dropdown-header">匹配</h6>
<div class="form-check dropdown-item"> <div class="form-check dropdown-item">
<input id="filter-athletic" type="checkbox" class="form-check-input" [(ngModel)]="replay_rooms_filter.athletic" (change)="refresh_replay_rooms()"> <input id="filter-athletic" type="checkbox" class="form-check-input" [(ngModel)]="replay_rooms_filter.athletic" (change)="refresh_replay_rooms()">
......
...@@ -388,6 +388,9 @@ export class YGOProComponent implements OnInit, OnDestroy { ...@@ -388,6 +388,9 @@ export class YGOProComponent implements OnInit, OnDestroy {
this.replay_connections = []; this.replay_connections = [];
}); });
let game_mode_dropdown = $('#game_mode_dropdown');
game_mode_dropdown.on('click', (e) => e.stopPropagation());
remote.ipcMain.on('YGOPro', (e: any, type: string) => { remote.ipcMain.on('YGOPro', (e: any, type: string) => {
console.log('rrrrr'); console.log('rrrrr');
this.request_match(type); this.request_match(type);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment