Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unstable removing Notify #7

Open
zydanmoto opened this issue Aug 27, 2019 · 0 comments
Open

Unstable removing Notify #7

zydanmoto opened this issue Aug 27, 2019 · 0 comments

Comments

@zydanmoto
Copy link

Hi Paul, I am trying to use NotifyJs in Dynamics and I found one issue.

I have one Notify1 "toolbar" showing on the Form. When I make an action to hide Notify1 and show Notify2 it is unstable. I should end up with only Notify2 showing.
But instead about half of the time both Notify1 and Notify2 are removed. (I am using unique ID for Notify1 and Notify2). Let me show you my JavaScript example:

function Button1() {
Notify.add('Notify1Showing', 'INFO', 'Notify1Id',);
}
function Button2() {
Notify.remove('Notify1Id');
Notify.add('Notify2Showing', 'INFO', 'Notify2Id',);
}

Could you please try to add button on Form (Ribbon Workbench) or use two fields with onChange events to simulate this?

What should happen:

  1. I press Button1 and Notify1 shows
  2. I press Button2 and Notify1 is removed and Notify 2 is showed

What happens:

  1. I press Button1 and Notify1 shows
  2. I press Button2 and Notify1 is removed, Notify2 is showed but immediately also removed
  3. No Notify is showing
  4. I press Button1 and both Notify1 and Notify2 are showing

I would be very grateful if you could look into it.
David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant