Jasonette / JASONETTE-iOS

📡 Native App over HTTP, on iOS
https://www.jasonette.com
MIT License
5.27k stars 352 forks source link

Opening a modal view with footer.input doesn't work #270

Closed gliechtenstein closed 6 years ago

gliechtenstein commented 6 years ago

When opening a view that contains footer.input as a "transition": "modal", the input field is not displayed. Here's an example:

{
  "$jason": {
    "head": {
      "title": "Test Modal Transition to Footer Input"
    },
    "body": {
      "sections": [
        {
          "items": [
            {
              "type": "label",
              "text": "open",
              "href": {
                "url": "https://jasonbase.com/things/QAnl",
                "transition": "modal"
              }
            }
          ]
        }
      ]
    }
  }
}

Opens:

{
  "$jason": {
    "head": {
      "title": "Footer Input Test"
    },
    "body": {
      "footer": {
        "input": {
          "right": {
            "action": {
              "type": "$util.banner",
              "options": {
                "title": "haha",
                "description": "haha"
              }
            }
          }
        }
      }
    }
  }
}

But no footer input, as seen here:

footerinput

gliechtenstein commented 6 years ago

Fixed with https://github.com/Jasonette/JASONETTE-iOS/commit/a9bab5c869e6843a1db53f38ff5f57bd9ab400d4