A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bootstrap-vue/bootstrap-vue/commit/77ad6b9 below:

add scoped style support when portalled (non-static mo… · bootstrap-vue/bootstrap-vue@77ad6b9 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+9

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+9

-1

lines changed Original file line number Diff line number Diff line change

@@ -987,13 +987,21 @@ export const BModal = /*#__PURE__*/ Vue.extend({

987 987

}

988 988

backdrop = h(BVTransition, { props: { noFade: this.noFade } }, [backdrop])

989 989 990 +

// If the parent has a scoped style attribute, and the modal

991 +

// is portalled, add the scoped attribute to the modal wrapper

992 +

const $parent = this.$parent

993 +

const scopeAttrs =

994 +

!this.static && $parent && $parent.$options._scopeId

995 +

? { [`${[$parent.$options._scopeId]}`]: '' }

996 +

: {}

997 + 990 998

// Assemble modal and backdrop in an outer <div>

991 999

return h(

992 1000

'div',

993 1001

{

994 1002

key: `modal-outer-${this._uid}`,

995 1003

style: this.modalOuterStyle,

996 -

attrs: { ...this.$attrs, id: this.safeId('__BV_modal_outer_') }

1004 +

attrs: { ...scopeAttrs, ...this.$attrs, id: this.safeId('__BV_modal_outer_') }

997 1005

},

998 1006

[modal, backdrop]

999 1007

)

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4