Page MenuHomePhabricator

Argument input selector on Function Editor has behavioral issues
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):
Go to the Edit function page of an existing function [1].
Start to delete the input type.

[1]

image.png (1×2 px, 768 KB)

What happens?:
When you delete one character the whole input clears.
The 'Publish' button remains active.

What should have happened instead?:
You should be able to delete letter by letter (like the output box).
As soon as there is not a valid input, the 'Publish' button should become disabled (like it does for the output box).

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Change 825396 had a related patch set uploaded (by Jkieserman; author: Jkieserman):

[mediawiki/extensions/WikiLambda@master] ZObjectSelector cleanup && do not reset input to null value

https://gerrit.wikimedia.org/r/825396

Change 825396 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] ZObjectSelector.vue updates: - remove unused code - use v-model to avoid false event triggers - do not allow publish when input type disappears

https://gerrit.wikimedia.org/r/825396