orchidsoftware / orchidsoftware/platform

Problems with "empty" method in select

Open
#2,116 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
4.8k
Forks
662
Avg merge
1d 9h
Merged PRs (30d)
7

Description

Discussed in https://github.com/orchidsoftware/platform/discussions/2092

Originally posted by oleksiakszymon January 28, 2022
Hello,
I'm not sure how method "empty" in select field is supposed to work. When i'm passing two arguments which is $name, $key - option $name is displayed with given key, but when i'm trying to pass only one argument - $name, option is not rendering. My target is to display option which when selected will not send the parameter at all to GET request.
Any ideas how to do it? Thanks in advance

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with discussion 2092 and the issue's description of the select field's empty method, comparing the one-argument and two-argument cases. Reproduce both behaviors and determine the expected handling of an option that should omit its parameter from the GET request. Done means the intended empty option renders consistently and its selected value is handled as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, php
Domain
backend, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.