Closed itelmenko closed 7 years ago
For
As for the other issue I'll look into it.
I have the same issue. It's not related to this sweet-button. As @itelmenko stated even most simple example <sweet-modal>This is an alert.</sweet-modal>
does not work. It just shows an empty white or black layer (depending on theme).
And if I change style for .sweet-modal
class to display:block
modal appears.
I found issue in my case. I'm using Laravel Spark in current project, and by default sweet-alert css is loaded which contains some collision classes. Removed that and works like a charm. @itelmenko you probably have some collision class to.
@mirzap Ah yes, just discovered this as well.
Having sweet-alert installed causes lots of css problems. What a shame.
@mirzap Any guidance on a fix, or what specific classes are conflicting?
Ok, so... within Laravel Spark application, public/css/sweetalert.css does have something like:
.sweet-alert { ... display: none; ... }
That's... weird? Changing to block does fix it for me.
I pushed a possible fix for this issue in the master branch (f8b3ac35c1cb26c994ccecc6523638a864f28547). Can you try if that solves it?
Not sure how I test it?
Remove the current version from npm, clone this repo, run npm i
on it and manually place it in the node_modules folder
Got it, using: "sweet-modal-vue": "adeptoas/sweet-modal-vue#master",
in package.json
Shows: └── sweet-modal-vue@1.2.0 (git://github.com/adeptoas/sweet-modal-vue.git#f8b3ac35c1cb26c994ccecc6523638a864f28547)
And actually, that both fixes the display issue itself, AND the non-centered issue I was having :)
You, sir, are a rockstar!
Awesome! I'll release this fix in an update in a few days together with a few other fixes.
Fantastic, thanks a bunch!!! 👍 👍
It does not work for me still. Because:
[Vue warn]: Unknown custom element: <sweet-button> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
What is sweet-button?
However if I don't use sweet-button It also does not work for me.
sweet-button
is only available in the demo.
What does not work for your?
What does not work for your?
All details in start post are actual after removing sweet-button also
Hello!
I have tried this example:
and I get error
Also if I use example:
I have not errors. But I see empty white layer without dialog window after
this.$refs.modal.open();
Div with class.sweet-modal
has styledisplay:none;
I have tried on Vue 2.1.10 and Vue 2.3.3