PaulNieuwelaar / notifyjs

Other
31 stars 9 forks source link

Unstable removing Notify #7

Open zydanmoto opened 5 years ago

zydanmoto commented 5 years ago

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