mirror of
https://github.com/nolanlawson/pinafore
synced 2025-01-07 08:46:45 +01:00
add workaround for Edge dialog bug
This commit is contained in:
parent
adfa5d5fb5
commit
5a11eeea31
@ -58,6 +58,10 @@
|
||||
|
||||
export default {
|
||||
oncreate() {
|
||||
// TODO: this hack is for Edge 16, which makes the modal too wide
|
||||
if (typeof setImmediate === 'function' && navigator.userAgent.match(/Edge/)) {
|
||||
this.get('dialog').style.width = `${this.get('width')}px`
|
||||
}
|
||||
this.registration = this.register()
|
||||
},
|
||||
methods: {
|
||||
|
Loading…
Reference in New Issue
Block a user