question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModelValue not updating to false on closing the Modal using the cross(X) button on header

See original GitHub issue

Describe the bug The modal has a header where the (X) button is present which is meant to close the button. But I noticed that it closes the modal but on clicking the button again to open the modal the modal does not open. So I further investigated the props value using the Vue extension and noticed that the modelValue is not getting updated on hide.

Expected behavior Expected behaviour should be the modal should toggle on on button click from which the action is taking place. If I click outside the modal it works correctly.

Additional context Please refer to the hide() code which seems to working in flaw. https://github.com/cdmoro/bootstrap-vue-3/blob/main/packages/bootstrap-vue-3/src/components/BModal.vue#L306

const hide = () => {
  if (modelValueBoolean.value) emit('update:modelValue', false)
  getInstance().hide()
}

this modelValue is not toggling.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
VividLemoncommented, Oct 11, 2022

I have a rough draft in the works that eliminates Bootstrapjs on Modal and will fix the complexity of dealing with both Vue and Bootstrapjs. Just dealing with the issues with <transition>

0reactions
github-actions[bot]commented, Dec 3, 2022

This issue was closed because it has been stalled for 14 days with no activity

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap close modal not working - Stack Overflow
The first is the close icon and the other one is cancel button, both use data-dismiss to close the modal. However, both of...
Read more >
Angular directives for Bootstrap - AngularUI
This repository contains a set of native AngularJS directives based on Bootstrap's markup and CSS. As a result no dependency on jQuery or...
Read more >
How to Close a React Native Modal with a Button - CodeProject
In this article. you will learn how to add a close button to a React Native, and how to close the modal by...
Read more >
Dialog | Element Plus
Set model-value / v-model attribute with a Boolean , and Dialog shows when it is ... If you have buttons that close the...
Read more >
Need to remove Close(X) button from spmodal - ServiceNow
Solved: I created a onload catalog client script with the following script(note: not in the widget) function onLoad() { spModal.open({ title:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found