Closed josephguillaume closed 8 months ago
Great start! Looks good so far. I will have more time on wednesday but you safe to continue with the outlined todos
I also added a (general) Definition of Done you need to consider. Some of those things you already have on the list. Let me know if anything is unclear. Great work so far!
I hate do say it, but there is a bug in your solution: The dialog does not close when the form is submitted successfully. I could not figure out why yet, perhaps you can take a look and let me know if you need help with it.
There is also an issue with the focus: The first field (type) should be focused. At least on chrome this worked so far. I know about issues with firefox, but now it is not working in either of them.
I hate do say it, but there is a bug in your solution: The dialog does not close when the form is submitted successfully. I could not figure out why yet, perhaps you can take a look and let me know if you need help with it.
There is also an issue with the focus: The first field (type) should be focused. At least on chrome this worked so far. I know about issues with firefox, but now it is not working in either of them.
While extending the e2e to cover the closing behaviour I just got aware that closing currently also only works in chrome but not in firefox or webkit, so I guess your refactoring only broke in chrome what is not really working right now in general. Perhaps we can fix it by doing both focussing and closing explicitly with javascript instead of relying on the default dialog behaviour that seems to be at least inconsistent among browsers. Are you willing to look into this?
superseded by https://github.com/pod-os/PodOS/pull/32
Refactor to have dialog element with a common style
pos-dialog
pos-add-new-thing
unit test is no longer responsible for logic to close the dialogpos-dialog
npm run build
in elements::slotted