Skip to content

Commit

Permalink
(UIComponents) Fix double back action in Dialogs
Browse files Browse the repository at this point in the history
[Issue] N/A
[Problem] User is navigated two pages backward adter click "back icon"
	in "Dialog -> General Dialog" or "Dialog -> Picker Dialogs".
[Solution] Exclude ".ui-btn-icon-back" from calling "tau.history.back"
	since it already does it.

Signed-off-by: Grzegorz Czajkowski <g.czajkowski@samsung.com>
  • Loading branch information
grzegorz-czajkowski authored and singa2000 committed Jun 22, 2020
1 parent da3410e commit f52d11a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/mobile/UIComponents/components/dialogs/dialog.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function (document, tau) {
var page = document.getElementById("demo-dialog-page"),
buttons = document.querySelectorAll(".ui-btn"),
buttons = document.querySelectorAll(".ui-btn:not(.ui-btn-icon-back)"),
progressPage = page.querySelector("#progressbar-dialog"),
progressbar = page.querySelector("#progressbar"),
progressPercent = page.querySelector("#percent"),
Expand Down
2 changes: 1 addition & 1 deletion examples/mobile/UIComponents/components/dialogs/picker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function (document, tau) {
var page = document.getElementById("demo-picker-page"),
buttons = document.querySelectorAll(".ui-btn"),
buttons = document.querySelectorAll(".ui-btn:not(.ui-btn-icon-back)"),
idx;

function onClick() {
Expand Down

0 comments on commit f52d11a

Please sign in to comment.