Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
I
iTasks-SDK
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 73
    • Issues 73
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 6
    • Merge Requests 6
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • clean-and-itasks
  • iTasks-SDK
  • Merge Requests
  • !435

Merged
Opened Jun 08, 2020 by Camil Staps@cstaps🚀Owner

Use change event on multiple select box instead of click events on individual options

  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1

Closes #397 (closed).

This is cherry-picked from !433 (merged), but is independent.

It seems that no changes are required for checkgroups (radio buttons). Apparently browsers fire the click event also when you change the selection with the keyboard.

Test program:

import StdEnv
import iTasks

Start w = doTasks (t1 -&&- t2) w

t1 =
	editSelection
		[ SelectMultiple True
		, SelectInDropdown
			(map \i -> {ChoiceText | id=i-1, text=toString i})
			(\opts is -> [opts !! i \\ i <- is])
		]
		[1,2,3]
		[]
	>&> viewSharedInformation []

t2 =
	editChoice
		[ChooseFromCheckGroup id]
		[1,2,3]
		Nothing
	>&> viewSharedInformation []
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
Reference: clean-and-itasks/iTasks-SDK!435
Source branch: 397-dont-use-click-even-for-dropdowns-and-checkgroups

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.